summaryrefslogtreecommitdiff
path: root/lsinitrd.sh
diff options
context:
space:
mode:
authorNikoli <nikoli@lavabit.com>2012-04-17 11:31:27 +0200
committerHarald Hoyer <harald@redhat.com>2012-04-17 11:54:27 +0200
commit25ff71b0c756bf2036bec78557398946d45bcbd3 (patch)
tree43a48d6ba8dd7ef626d2c442f4480a13ce0d1114 /lsinitrd.sh
parent324be70f8070105c106c5901dd0575cb116cebc9 (diff)
downloaddracut-25ff71b0c756bf2036bec78557398946d45bcbd3.tar.gz
dracut-25ff71b0c756bf2036bec78557398946d45bcbd3.tar.bz2
dracut-25ff71b0c756bf2036bec78557398946d45bcbd3.zip
lsinitrd: support symlinks
Diffstat (limited to 'lsinitrd.sh')
-rwxr-xr-xlsinitrd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsinitrd.sh b/lsinitrd.sh
index 1eaa37dd..e6767dcf 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"