Skip to content

Commit

Permalink
export-noobs: umount boot before archiving root
Browse files Browse the repository at this point in the history
bsdtar does not add directories which are mountpoints. This removes /boot from
the archive and prevents init_resize.sh from working.
  • Loading branch information
XECDesign committed Nov 29, 2016
1 parent 848cbf4 commit 06ba664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions export-noobs/prerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 06ba664

Please sign in to comment.