From 76ffce40e120035ce8576525ad29e4785d517eb6 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 30 Dec 2009 14:50:16 +0000 Subject: Improve disk image archive creation Drop path components inside the tarball --- diff --git a/modules/sd_card_image/postimage.50.makezd.sh b/modules/sd_card_image/postimage.50.makezd.sh index 2f7a879..b76e357 100644 --- a/modules/sd_card_image/postimage.50.makezd.sh +++ b/modules/sd_card_image/postimage.50.makezd.sh @@ -24,7 +24,7 @@ for line in $(env); do if [[ "$compress" == "1" ]]; then echo "Compressing disk image..." - tar -czSf $pfx.disk.img.tar.gz $pfx.disk.img + tar -czS -f $pfx.disk.img.tar.gz -C $outputdir $osname.disk.img rm -f $pfx.disk.img fi done -- cgit v0.9.1