SVN: geninitrd/trunk/geninitrd
arekm
arekm at pld-linux.org
Sat Apr 13 23:57:50 CEST 2013
Author: arekm
Date: Sat Apr 13 23:57:50 2013
New Revision: 12651
Modified:
geninitrd/trunk/geninitrd
Log:
Show last 20 dmesg lines just before switch_root when using debuginitrd.
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Sat Apr 13 23:57:50 2013
@@ -911,6 +911,15 @@
fi
EOF
+ busybox_applet dmesg
+ busybox_applet tail
+ add_linuxrc <<-'EOF'
+ if [ "$DEBUGINITRD" ]; then
+ echo "Last 20 lines of dmesg:"
+ dmesg | tail -n 20
+ fi
+ EOF
+
umount_all
busybox_applet switch_root
add_linuxrc <<-'EOF'
More information about the pld-cvs-commit
mailing list