From: Nikoli Date: Tue, 17 Apr 2012 09:31:27 +0000 (+0200) Subject: lsinitrd: support symlinks X-Git-Tag: 019~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25ff71b0c756bf2036bec78557398946d45bcbd3;p=thirdparty%2Fdracut.git lsinitrd: support symlinks --- diff --git a/lsinitrd.sh b/lsinitrd.sh index 1eaa37dd3..e6767dcfc 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -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"