]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd.sh: sort by filename
authorHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 08:25:10 +0000 (10:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 08:25:10 +0000 (10:25 +0200)
lsinitrd.sh

index 3d6084d3132244cf687e5eed7bcb45836fc540d6..77a15c5faa641af818184a6d5ab22dd97650482d 100755 (executable)
@@ -70,6 +70,6 @@ echo "========================================================================"
 if [ "$sorted" -eq 1 ]; then
     $CAT "$image" | cpio --extract --verbose --quiet --list | sort -n -k5
 else
-    $CAT "$image" | cpio --extract --verbose --quiet --list
+    $CAT "$image" | cpio --extract --verbose --quiet --list | sort -k9
 fi
 echo "========================================================================"