git: 192a5eeab8d1 - stable/15 - vfs_mountroot: unmute console in interactive prompt

Ahmad Khalifa <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a776dd8.3df35.110298d__45185.6866174907$1786211819$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by vexeduxr:

URL: https://cgit.FreeBSD.org/src/commit/?id=192a5eeab8d1d9a55b1eb37d08aa26fdf7f486ec

commit 192a5eeab8d1d9a55b1eb37d08aa26fdf7f486ec
Author:     Ahmad Khalifa <[email protected]>
AuthorDate: 2026-08-01 09:26:44 +0000
Commit:     Ahmad Khalifa <[email protected]>
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);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.