Wait for root mount tokens before showing the root mount prompt.
This restores the pre-r290196 behaviour, eliminating the need to manually press '.' a couple of times to get USB to finish probing. Note that there's still something wrong with the console (character echoing doesn't quite work), and there's also a reported problem with BHyVe, but those two don't seem related to the problem above. MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
480f4e946d
commit
68d35798b9
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user