[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH,HURD] Fix GNU/Hurd menu entry generation
From: |
Samuel Thibault |
Subject: |
[PATCH,HURD] Fix GNU/Hurd menu entry generation |
Date: |
Mon, 2 Nov 2009 20:36:05 +0100 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hello,
The patch below fixes menu entry generation for GNU/Hurd.
Samuel
2009-20-26 Samuel Thibault <address@hidden>
* util/grub.d/30_os-prober.in: Add GNU/Hurd support
Index: util/grub.d/30_os-prober.in
===================================================================
--- util/grub.d/30_os-prober.in (révision 2657)
+++ util/grub.d/30_os-prober.in (copie de travail)
@@ -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
- [PATCH,HURD] Fix GNU/Hurd menu entry generation,
Samuel Thibault <=