2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>

* util/grub.d/30_os-prober.in: Fix conversion from grub-probe
	--target=drive output to Mach device name.
This commit is contained in:
Samuel Thibault 2010-08-23 22:41:14 +02:00
parent 0c8b61d8e4
commit 04ddcc6a88
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
* util/grub.d/30_os-prober.in: Fix conversion from grub-probe
--target=drive output to Mach device name.
2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
New Automake based build system for GRUB.

View File

@ -179,7 +179,7 @@ EOF
save_default_entry | sed -e "s/^/\t/"
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`"
mach_device="`echo "${grub_device}" | sed -e 's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
case "${grub_fs}" in
*fs) hurd_fs="${grub_fs}" ;;