2010-09-10 Robert Millan <rmh@gnu.org>

* util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
	on ZFS.  Now non-main filesystems are supported as / too.
This commit is contained in:
Robert Millan 2010-09-10 13:35:23 +02:00
parent b6a690eeb8
commit 66d4bea5cc
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-09-10 Robert Millan <rmh@gnu.org>
* util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
on ZFS. Now non-main filesystems are supported as / too.
2010-09-09 Colin Watson <cjwatson@ubuntu.com> 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
* Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c

View file

@ -138,7 +138,12 @@ while [ "x$list" != "x" ] ; do
esac esac
case ${GRUB_FS} in case ${GRUB_FS} in
zfs) kfreebsd_device=$(grub-probe -t fs_label --device ${GRUB_DEVICE}) ;; zfs)
# zpool name
kfreebsd_device=$(grub-probe -t fs_label --device ${GRUB_DEVICE})
# filesystem name (empty string for the main filesystem)
kfreebsd_device="${kfreebsd_device}$(grub-mkrelpath / | sed -e "s,/*@$,,")"
;;
*) kfreebsd_device=${GRUB_DEVICE} ;; *) kfreebsd_device=${GRUB_DEVICE} ;;
esac esac