summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2016-11-21 18:00:51 +0000
committerSerge Schneider <serge@raspberrypi.org>2016-11-21 18:00:51 +0000
commit09590eba4aa6b9a47e36288cc890f3361be0c783 (patch)
treec41ce3c9f553376ae4ba136c0a88987aad22f0f8
parentc4fb032d3b8e6113f4e2bc197442b01ed333968e (diff)
export-noobs: use bsdtar
-rw-r--r--depends1
-rwxr-xr-xexport-noobs/prerun.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/depends b/depends
index b2b7b56..a4c48cd 100644
--- a/depends
+++ b/depends
@@ -5,3 +5,4 @@ kpartx zerofree
pxz zip
mkdosfs:dosfstools
capsh:libcap2-bin
+bsdtar
diff --git a/export-noobs/prerun.sh b/export-noobs/prerun.sh
index 6065ae8..60d51a9 100755
--- a/export-noobs/prerun.sh
+++ b/export-noobs/prerun.sh
@@ -19,7 +19,7 @@ mkdir -p ${NOOBS_DIR}
mount $ROOT_DEV ${STAGE_WORK_DIR}/rootfs
mount $BOOT_DEV ${STAGE_WORK_DIR}/rootfs/boot
-tar -I pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz .
-tar -I pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz .
+bsdtar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz .
+bsdtar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz .
unmount_image ${IMG_FILE}