]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd.sh: fixed version file extraction
authorHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 16:24:21 +0000 (18:24 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 16:24:21 +0000 (18:24 +0200)
lsinitrd.sh

index fc4b8b03827a783ed9b5e758f772656f1ac3ea72..a844932d40bb17e5d1b5bee97fc593a916e85829 100755 (executable)
@@ -65,7 +65,7 @@ fi
 
 echo "$image: $(du -h $image | while read a b; do echo $a;done)"
 echo "========================================================================"
-$CAT "$image" | cpio --extract --verbose --quiet --to-stdout 'lib/dracut/dracut-*' 2>/dev/null
+$CAT "$image" | cpio --extract --verbose --quiet --to-stdout '*lib/dracut/dracut-*' 2>/dev/null
 echo "========================================================================"
 if [ "$sorted" -eq 1 ]; then
     $CAT "$image" | cpio --extract --verbose --quiet --list | sort -n -k5