From 09590eba4aa6b9a47e36288cc890f3361be0c783 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Mon, 21 Nov 2016 18:00:51 +0000 Subject: [PATCH] export-noobs: use bsdtar --- depends | 1 + export-noobs/prerun.sh | 4 ++-- 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}