[arch-projects] [mkinitcpio][PATCH 4/4] lsinitcpio: comment on why bsdtar alone isn't good enough

Dave Reisner dreisner at archlinux.org
Sun Jul 15 10:33:52 EDT 2012


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 at archlinux.org>
---
 lsinitcpio | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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
-- 
1.7.11.2



More information about the arch-projects mailing list