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.
This commit is contained in:
parent
848cbf48a0
commit
06ba664bfc
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue