]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
save precious scrollback buffer contents when data can be fetched later
authorTomasz Pala <gotar@pld-linux.org>
Sun, 14 Aug 2016 18:10:24 +0000 (20:10 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Sun, 14 Aug 2016 18:10:24 +0000 (20:10 +0200)
geninitrd

index 432999c1214f43c9b1508bded01254bf1abb4dac..0b838e6b8a0a8cba090319ab2e256722d27e6e87 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -992,7 +992,7 @@ initrd_gen_initramfs_switchroot() {
                        ' /proc/partitions)"
 
                if [ -z "$device" ]; then
-                       if [ "$DEBUGINITRD" ]; then
+                       if [ "$DEBUGINITRD" -a "$DEBUGINITRD" != 'sh' ]; then
                                cat /proc/partitions
                        fi
                        device=$ROOT
@@ -1041,7 +1041,7 @@ initrd_gen_initramfs_switchroot() {
        busybox_applet dmesg
        busybox_applet tail
        add_linuxrc <<-'EOF'
-               if [ "$DEBUGINITRD" ]; then
+               if [ "$DEBUGINITRD" -a "$DEBUGINITRD" != 'sh' ]; then
                        echo "Last 20 lines of dmesg:"
                        dmesg | tail -n 20
                fi
This page took 2.723182 seconds and 4 git commands to generate.