summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2016-11-29 14:42:40 +0000
committerSerge Schneider <serge@raspberrypi.org>2016-11-29 14:42:40 +0000
commit06ba664bfc54a8a2df1313f8a02d222da5af8261 (patch)
tree268a44165a54eb13a1ab2222a9a3f571faa76f24
parent848cbf48a03c21df98c4c5d35030929fac8a36fe (diff)
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.
-rwxr-xr-xexport-noobs/prerun.sh1
1 files changed, 1 insertions, 0 deletions
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}