Date: Sat, 08 Aug 2026 17:56:40 +0000 From: Ahmad Khalifa <vexeduxr@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 192a5eeab8d1 - stable/15 - vfs_mountroot: unmute console in interactive prompt Message-ID: <6a776dd8.3df35.110298d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by vexeduxr: URL: https://cgit.FreeBSD.org/src/commit/?id=192a5eeab8d1d9a55b1eb37d08aa26fdf7f486ec commit 192a5eeab8d1d9a55b1eb37d08aa26fdf7f486ec Author: Ahmad Khalifa <vexeduxr@FreeBSD.org> AuthorDate: 2026-08-01 09:26:44 +0000 Commit: Ahmad Khalifa <vexeduxr@FreeBSD.org> CommitDate: 2026-08-08 17:52:15 +0000 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) --- sys/kern/vfs_mountroot.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a776dd8.3df35.110298d>
