]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Show last 20 dmesg lines just before switch_root when using debuginitrd.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 13 Apr 2013 21:57:50 +0000 (21:57 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 13 Apr 2013 21:57:50 +0000 (21:57 +0000)
svn-id: @12651

geninitrd

index bd2adc8a4a6430017398d39afff787359c02373a..7ced893d88a11c8105b5109ee0f6dc4ef622f3e2 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -911,6 +911,15 @@ initrd_gen_initramfs_switchroot() {
                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'
This page took 0.272219 seconds and 4 git commands to generate.