[projects/geninitrd] save precious scrollback buffer contents when data can be fetched later

gotar gotar at pld-linux.org
Sun Aug 14 22:09:53 CEST 2016


commit 0d9c261f8a81bbe23bb097ae14002dce0fcaaa41
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Sun Aug 14 20:10:24 2016 +0200

    save precious scrollback buffer contents when data can be fetched later

 geninitrd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 432999c..0b838e6 100755
--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/6ed0f7b1ebdba0a6aaed765e3f4c293ac09f975b



More information about the pld-cvs-commit mailing list