diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-08-01 09:26:44 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-08-01 09:26:44 +0000 |
| commit | e96f1cbd690e68594fc8812de634f43c6711aa97 (patch) | |
| tree | 773e8ee82ab64b17d03c9f710a7b1beeb1de96d0 | |
| parent | d2309d9d6dc6d5a9141314652d6c96ab46a9a62c (diff) | |
vfs_mountroot: unmute console in interactive prompt
If boot_mute is set the system appears to hang during the mountroot
prompt. Temporarily unmute the console so the prompt is visible.
Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D58549
| -rw-r--r-- | sys/kern/vfs_mountroot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c index dd2364f5bf6a..60959cfd15d8 100644 --- a/sys/kern/vfs_mountroot.c +++ b/sys/kern/vfs_mountroot.c @@ -520,10 +520,14 @@ parse_dir_ask(char **conf) { char name[80]; char *mnt; - int error; + int error, cn_mute_save; vfs_mountroot_wait(); + /* Make sure the prompt is visible. */ + cn_mute_save = cn_mute; + cn_mute = 0; + printf("\nLoader variables:\n"); parse_dir_ask_printenv("vfs.root.mountfrom"); parse_dir_ask_printenv("vfs.root.mountfrom.options"); @@ -564,6 +568,7 @@ parse_dir_ask(char **conf) printf("Invalid file system specification.\n"); } while (error != 0); + cn_mute = cn_mute_save; return (error); } |
