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'
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to