The branch main has been updated by vexeduxr:

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

commit e96f1cbd690e68594fc8812de634f43c6711aa97
Author:     Ahmad Khalifa <[email protected]>
AuthorDate: 2026-08-01 09:26:44 +0000
Commit:     Ahmad Khalifa <[email protected]>
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);
 }
 

Reply via email to