* util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
on ZFS. Now non-main filesystems are supported as / too.
+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>
* Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
esac
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} ;;
esac