From 06ba664bfc54a8a2df1313f8a02d222da5af8261 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 29 Nov 2016 14:42:40 +0000 Subject: [PATCH] export-noobs: umount boot before archiving root bsdtar does not add directories which are mountpoints. This removes /boot from the archive and prevents init_resize.sh from working. --- export-noobs/prerun.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/export-noobs/prerun.sh b/export-noobs/prerun.sh index cab3979..1b5d5a2 100755 --- a/export-noobs/prerun.sh +++ b/export-noobs/prerun.sh @@ -20,6 +20,7 @@ mount $ROOT_DEV ${STAGE_WORK_DIR}/rootfs mount $BOOT_DEV ${STAGE_WORK_DIR}/rootfs/boot bsdtar --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz . +umount ${STAGE_WORK_DIR}/rootfs/boot bsdtar --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz . unmount_image ${IMG_FILE}