Fix GNU/Hurd menu entry generation
PATCH 1/1 Fix GNU/Hurd menu entry generation
Hello,
The patch below fixes menu entry generation for GNU/Hurd.
Samuel
2009-20-26 Samuel Thibault <[email protected]>
* util/grub.d/30_os-prober.in: Add GNU/Hurd support
grub.d/30_os-prober.in +22 -1
@@ -155,7 +155,28 @@ EOF ;; hurd|*) - echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2 + cat << EOF +menuentry "${LONGNAME} (on ${DEVICE})" { +EOF + prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/" + grub_device="`${grub_probe} --device ${DEVICE} --target=drive`" + mach_device="`echo "${grub_device}" | tr -d '()' | tr , s`" + grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`" + case "${grub_fs}" in + *fs) hurd_fs="${grub_fs}" ;; + *) hurd_fs="${grub_fs}fs" ;; + esac + cat << EOF + multiboot /boot/gnumach.gz root=device:${mach_device} + module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\ + --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 exec /hurd/exec '\$(exec-task=task-create)' +} +EOF ;; esac done
Quoted 3 lines · Samuel Thibault
Hello,
The patch below fixes menu entry generation for GNU/Hurd.
Committed. Btw, next time please use text/plain attachments.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Quoted 9 lines · Robert Millan
Quoted 4 lines · Samuel Thibault
Hello,
The patch below fixes menu entry generation for GNU/Hurd.
Committed. Btw, next time please use text/plain attachments.
Hi,
is it normal that hurd entry match ANY OS because you left the wildcard in the hurd case:
case ${BOOT} in
...
...
hurd|***)
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
....
Regards,
Yves Blusseau
Quoted 2 lines · Yves Blusseau, le Tue 03 Nov 2009 14:36:09 +0100, a écrit :
is it normal that hurd entry match ANY OS because you left the wildcard in the hurd case:
Ugh, no, I was misguided by the hurd tag indeed, here is a patch.
Samuel
2009-11-03 Samuel Thibault <[email protected]>
* util/grub.d/30_os-prober.in: Restore default behavior for unsupported OSes.
grub.d/30_os-prober.in +4 -1
@@ -158,7 +158,7 @@ } EOF ;; - hurd|*) + hurd) cat << EOF menuentry "${LONGNAME} (on ${DEVICE})" { EOF
@@ -182,5 +182,8 @@ } EOF ;; + *) + echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2 + ;; esac done
Am Dienstag, den 03.11.2009, 15:01 +0100 schrieb Samuel Thibault:
Quoted 7 lines
Quoted 2 lines · Yves Blusseau, le Tue 03 Nov 2009 14:36:09 +0100, a écrit :
is it normal that hurd entry match ANY OS because you left the wildcard in the hurd case:
Ugh, no, I was misguided by the hurd tag indeed, here is a patch.
Samuel
Commited.
Signature · 2 lines
Felix Zielcke Proud Debian Maintainer and GNU GRUB developer