Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142075465
D47489.id146184.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
D47489.id146184.diff
View Options
diff --git a/kern/kern_cons.c b/kern/kern_cons.c
--- a/kern/kern_cons.c
+++ b/kern/kern_cons.c
@@ -567,6 +567,13 @@
cnputsn(p, strlen(p));
}
+void
+cnunmute(void)
+{
+ if (cn_mute)
+ cn_mute = 0;
+}
+
static unsigned int consmsgbuf_size = 65536;
SYSCTL_UINT(_kern, OID_AUTO, consmsgbuf_size, CTLFLAG_RWTUN, &consmsgbuf_size,
0, "Console tty buffer size");
diff --git a/kern/vfs_mountroot.c b/kern/vfs_mountroot.c
--- a/kern/vfs_mountroot.c
+++ b/kern/vfs_mountroot.c
@@ -525,6 +525,8 @@
vfs_mountroot_wait();
+ cnunmute();
+
printf("\nLoader variables:\n");
parse_dir_ask_printenv("vfs.root.mountfrom");
parse_dir_ask_printenv("vfs.root.mountfrom.options");
diff --git a/sys/cons.h b/sys/cons.h
--- a/sys/cons.h
+++ b/sys/cons.h
@@ -137,6 +137,7 @@
void cnputc(int);
void cnputs(const char *);
void cnputsn(const char *, size_t);
+void cnunmute(void);
int cnunavailable(void);
int constty_set(struct tty *tp);
int constty_clear(struct tty *tp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 16, 7:22 PM (11 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27666769
Default Alt Text
D47489.id146184.diff (977 B)
Attached To
Mode
D47489: Un-mute console on root mount failure
Attached
Detach File
Event Timeline
Log In to Comment