aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-10-24 17:44:09 -0500
committerRob Landley <rob@landley.net>2020-10-24 17:44:09 -0500
commitbc46bc619fcd83c3e85b054042577c95d1511484 (patch)
tree5448f42f6ce4b16c4f069890e863d0e39fff6ef6
parent83d1ddc8ed3039ad4a6b9d32aa716bc8ab625c08 (diff)
downloadtoybox-bc46bc619fcd83c3e85b054042577c95d1511484.tar.gz
Silence kernel messages that stomp the command line after boot.
-rwxr-xr-xscripts/mkroot.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mkroot.sh b/scripts/mkroot.sh
index 79774795..0953f419 100755
--- a/scripts/mkroot.sh
+++ b/scripts/mkroot.sh
@@ -98,6 +98,7 @@ if [ $$ -eq 1 ]; then # Setup networking for QEMU (needs /proc)
[ -z "$CONSOLE" ] && CONSOLE="$(</sys/class/tty/console/active)"
[ -z "$HANDOFF" ] && HANDOFF=/bin/sh && echo Type exit when done.
+ echo 3 > /proc/sys/kernel/printk
exec oneit -c /dev/"${CONSOLE:-console}" $HANDOFF
else # for chroot
/bin/sh