summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-03-22 13:46:01 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-03-22 13:46:01 +0000
commit68d35798b951db18ca484d26ebcd554025d2a61a (patch)
treef6d27beffc5bdcaced45e7da104e98f92f971fd7
parent480f4e946db51c7de558c4cd1ba3d88caeaceec8 (diff)
Notes
-rw-r--r--sys/kern/vfs_mountroot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index cf2425306dd6..a33e376ce08e 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -89,6 +89,7 @@ __FBSDID("$FreeBSD$");
static int parse_mount(char **);
static struct mntarg *parse_mountroot_options(struct mntarg *, const char *);
static int sysctl_vfs_root_mount_hold(SYSCTL_HANDLER_ARGS);
+static void vfs_mountroot_wait(void);
static int vfs_mountroot_wait_if_neccessary(const char *fs, const char *dev);
/*
@@ -488,6 +489,8 @@ parse_dir_ask(char **conf)
char *mnt;
int error;
+ vfs_mountroot_wait();
+
printf("\nLoader variables:\n");
parse_dir_ask_printenv("vfs.root.mountfrom");
parse_dir_ask_printenv("vfs.root.mountfrom.options");