]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Show /proc/mdstat contents in debuginitd mode.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 24 Aug 2011 19:42:47 +0000 (19:42 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 24 Aug 2011 19:42:47 +0000 (19:42 +0000)
svn-id: @12334

mod-md.sh

index 7d4d88404bac3dc3f63fc549edf77912b20f002f..26821d2f22756d31b270a056c5bef8f14de4de2a 100644 (file)
--- a/mod-md.sh
+++ b/mod-md.sh
@@ -185,6 +185,10 @@ initrd_gen_md() {
 
        echo "mdassemble" | add_linuxrc
 
+       if [ "$DEBUGINITRD" ]; then
+               echo "[ -e /proc/mdstat ] && echo "/proc/mdstat contents:" && cat /proc/mdstat" | add_linuxrc
+       fi
+
        # needed to determine md-version
        if [ "$do_md0" -eq 1 ]; then
                mknod $DESTDIR/dev/md0 b 9 0
This page took 0.154951 seconds and 4 git commands to generate.