diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-08-01 09:26:44 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-08-08 17:52:15 +0000 |
| commit | 192a5eeab8d1d9a55b1eb37d08aa26fdf7f486ec (patch) | |
| tree | bc83ff2b6b632a2eb38d5e78ac46493b0afc1dc6 | |
| parent | c3a70b0319d9ace70c9229e306f114893df1d714 (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
(cherry picked from commit e96f1cbd690e68594fc8812de634f43c6711aa97)
| -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 e0d1cec5bd71..4b711b7fb861 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); } |
