Re: Grub2 menu entry
On 10/10/06, Luca Capello <luca@pca.it> wrote:
Hello!
Please don't Cc: me, I read the list ;-)
Sorry, web-gmail still doesn't have reply to list button, so I have to
manually do things, :)
Does hurd boots or not?
Yes it does, but it freezes on 1 of the modules load. I think, it
freezes on the 1st one to load (I do get the message of 2 modules to
be loaded), but I can't confirm since the freeze doesn't provide debug
hints.
It should do it just with the following, but then automatically reboot:
=====
menuentry "Debian GNU/Hurd" {
set root=(hd0)
multiboot /boot/gnumach.gz root=device:hd0
}
=====
Hmm, that is without the modules, I've never tried that...
Yes, the following is the grub.cfg I use for /dev/hda10 on qemu:
Hmm, might there be a difference between booting qemu, and booting on real HW?
=====
set default=0
set timeout=5
menuentry "Debian GNU/Hurd" {
set root=(hd0)
multiboot /boot/gnumach.gz root=device:hd0
module /hurd/ext2fs.static \
--multiboot-command-line='${kernel-command-line}' \
--host-priv-port='${host-port}' \
--device-master-port='${device-port}' \
--exec-server-task='${exec-task}' \
-T typed '${root}' '$(task-create)' '$(task-resume)'
module /lib/ld.so.1 /hurd/exec '$(exec-task=task-create)'
}
menuentry "Debian GNU/Hurd (single-user mode)" {
set root=(hd0)
multiboot /boot/gnumach.gz root=device:hd0 -s
module /hurd/ext2fs.static \
--multiboot-command-line='${kernel-command-line}' \
--host-priv-port='${host-port}' \
--device-master-port='${device-port}' \
--exec-server-task='${exec-task}' \
-T typed '${root}' '$(task-create)' '$(task-resume)'
module /lib/ld.so.1 /hurd/exec '$(exec-task=task-create)'
}
=====
I see no difference between these and the ones I used. Weird thing is
that on legacy grub I have no problems.
> Good to know you got it working though, :).
Don't give up, I spent a whole Sunday to get it working ;-)
It should be just quoting (scaping?) characters. BTW, I also tried
quoting '${root} $(task-create) $(task-resume)' altogether, but got
the same freeze. Maybe I should try quoting the whole module string,
something like:
module '/hurd/ext2fs.static
--multiboot-command-line=${kernel-command-line}
--host-priv-port=${host-port} --device-master-port=${device-port}
--exec-server-task=${exec-task} -T typed ${root} $(task-create)
$(task-resume)'
That's something I haven't tried yet...
--
Javier
Reply to: