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.
pull/35/head 2016-11-25-raspbian-jessie
Serge Schneider 2016-11-29 14:42:40 +00:00
parent 848cbf48a0
commit 06ba664bfc
1 changed files with 1 additions and 0 deletions

View File

@ -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}