lsinitrd: support symlinks

This commit is contained in:
Nikoli 2012-04-17 11:31:27 +02:00 committed by Harald Hoyer
parent 324be70f80
commit 25ff71b0c7

View File

@ -34,7 +34,7 @@ image="${1:-/boot/initramfs-$(uname -r).img}"
[[ -f "$image" ]] || { echo "$image does not exist" ; exit 1 ; }
CAT=zcat
FILE_T=$(file "$image")
FILE_T=$(file --dereference "$image")
if echo "test"|xz|xz -dc --single-stream >/dev/null 2>&1; then
XZ_SINGLE_STREAM="--single-stream"