Author: arekm
Date: Sun Apr 14 00:09:25 2013
New Revision: 12652

Modified:
   geninitrd/trunk/geninitrd
Log:
debuginitrd: Show proc partitions if our awk magic fails.

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Sun Apr 14 00:09:25 2013
@@ -837,6 +837,7 @@
        #  *  The device names are hard-coded in the kernel. Therefore, only the
        #         "standard" names are supported and some less common devices 
may not be
        #         recognized. In those cases, only numbers can be used.
+       busybox_applet cat
        add_linuxrc <<-'EOF'
                device=
                eval "$(busybox awk -v root="$ROOT" '
@@ -895,6 +896,9 @@
                        ' /proc/partitions)"
 
                if [ -z "$device" ]; then
+                       if [ "$DEBUGINITRD" ]; then
+                               cat /proc/partitions
+                       fi
                        device=$ROOT
                fi
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to