summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-06-24 16:03:48 +0200
committerDave Reisner <dreisner@archlinux.org>2012-07-15 16:29:08 +0200
commiteab31b017ace36683d314e0891f86e875fdc63b0 (patch)
treecbe05d58b5d1990548645cb09c7da127bf83ccaf
parent5f81d06e8b879e1778649405b314d60234934dfc (diff)
downloadmkinitcpio-eab31b017ace36683d314e0891f86e875fdc63b0.tar.gz
mkinitcpio-eab31b017ace36683d314e0891f86e875fdc63b0.tar.xz
lsinitcpio: comment on why bsdtar alone isn't good enough
I almost deleted this, replacing it with only bsdtar. Add a comment so I'm not tempted to do this again. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xlsinitcpio4
1 files changed, 3 insertions, 1 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 4b9f77b..980596a 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -141,7 +141,9 @@ if (( analyze )); then
ratio=.$(( zsize * 1000 / fullsize % 1000 ))
fi
- # decompress the image since we need to read from it multiple times
+ # decompress the image since we need to read from it multiple times. we
+ # have to pass this through decomp() since the image might be lzop which
+ # bsdtar can't read.
decomp "$image" | bsdtar -C "$workdir" -xf -
# collect stats