]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd.sh: also print out the arguments used to create the initramfs
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 10:56:09 +0000 (11:56 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 11:49:17 +0000 (12:49 +0100)
lsinitrd.sh

index f9f243bbc39ca72cf7a7926d60ecf33b1b81f7a8..4685737e8af84bf4f40e55420c7c04ade3f32af8 100755 (executable)
@@ -138,7 +138,11 @@ else
     echo "========================================================================"
     version=$($CAT "$image" | cpio --extract --verbose --quiet --to-stdout -- '*lib/dracut/dracut-*' 2>/dev/null)
     ((ret+=$?))
-    echo "$version with dracut modules:"
+    echo "Version: $version"
+    echo -n "Arguments: "
+    $CAT "$image" | cpio --extract --verbose --quiet --to-stdout -- '*lib/dracut/build-parameter.txt' 2>/dev/null
+    echo
+    echo "dracut modules:"
     $CAT "$image" | cpio --extract --verbose --quiet --to-stdout -- '*lib/dracut/modules.txt' 2>/dev/null
     ((ret+=$?))
     echo "========================================================================"