summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/zfsboot/zfsboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386/zfsboot/zfsboot.c')
-rw-r--r--sys/boot/i386/zfsboot/zfsboot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/i386/zfsboot/zfsboot.c b/sys/boot/i386/zfsboot/zfsboot.c
index 1d0077b..48a29f5 100644
--- a/sys/boot/i386/zfsboot/zfsboot.c
+++ b/sys/boot/i386/zfsboot/zfsboot.c
@@ -45,7 +45,8 @@ __FBSDID("$FreeBSD$");
/* Hint to loader that we came from ZFS */
#define KARGS_FLAGS_ZFS 0x4
-#define PATH_CONFIG "/boot.config"
+#define PATH_DOTCONFIG "/boot.config"
+#define PATH_CONFIG "/boot/config"
#define PATH_BOOT3 "/boot/zfsloader"
#define PATH_KERNEL "/boot/kernel/kernel"
@@ -533,7 +534,8 @@ main(void)
zfs_mount_pool(spa);
- if (zfs_lookup(spa, PATH_CONFIG, &dn) == 0) {
+ if (zfs_lookup(spa, PATH_CONFIG, &dn) == 0 ||
+ zfs_lookup(spa, PATH_DOTCONFIG, &dn) == 0) {
off = 0;
zfs_read(spa, &dn, &off, cmd, sizeof(cmd));
}
OpenPOWER on IntegriCloud