Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Aug 2026 09:28:08 +0000
From:      Ahmad Khalifa <vexeduxr@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e96f1cbd690e - main - vfs_mountroot: unmute console in interactive prompt
Message-ID:  <6a6dbc28.30cf2.1dea50dd@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vexeduxr:

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

commit e96f1cbd690e68594fc8812de634f43c6711aa97
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-08-01 09:26:44 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2026-08-01 09:26:44 +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
---
 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 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);
 }
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6dbc28.30cf2.1dea50dd>