From 59ade63d27dae4d2fc7e3e0df6bb8b68003ec5ed Mon Sep 17 00:00:00 2001 From: phcoder Date: Wed, 15 Jul 2009 22:51:47 +0000 Subject: [PATCH] 2009-07-16 Vladimir Serbinenko Make FreeBSD accept zpool.cache * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if type is /boot/zfs/zpool.cache --- ChangeLog | 7 +++++++ loader/i386/bsd.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9d5e2f6cd..80bd3a68a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-07-16 Vladimir Serbinenko + + Make FreeBSD accept zpool.cache + + * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if + type is /boot/zfs/zpool.cache + 2009-07-16 Vladimir Serbinenko Fix 64-bit efiemu diff --git a/loader/i386/bsd.c b/loader/i386/bsd.c index b76cfb549..468e6d0cf 100644 --- a/loader/i386/bsd.c +++ b/loader/i386/bsd.c @@ -271,6 +271,8 @@ grub_freebsd_add_meta_module (char *filename, char *type, int argc, char **argv, name++; else name = filename; + if (grub_strcmp (type, "/boot/zfs/zpool.cache") == 0) + name = "/boot/zfs/zpool.cache"; if (grub_freebsd_add_meta (FREEBSD_MODINFO_NAME, name, grub_strlen (name) + 1))