Skip to content

Commit

Permalink
Use different rsync options for boot and root
Browse files Browse the repository at this point in the history
When copying files to boot, options that are not supported on fat32 can cause errors. For example owner, group and xattrs.
  • Loading branch information
samtygier authored and fuji246 committed Sep 13, 2019
1 parent 3ec1a17 commit 7466565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion export-image/prerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ mount -v "$ROOT_DEV" "${ROOTFS_DIR}" -t ext4
mkdir -p "${ROOTFS_DIR}/boot"
mount -v "$BOOT_DEV" "${ROOTFS_DIR}/boot" -t vfat

rsync -aHAXx --exclude var/cache/apt/archives "${EXPORT_ROOTFS_DIR}/" "${ROOTFS_DIR}/"
rsync -aHAXx --exclude /var/cache/apt/archives --exclude /boot "${EXPORT_ROOTFS_DIR}/" "${ROOTFS_DIR}/"
rsync -rtx "${EXPORT_ROOTFS_DIR}/boot/" "${ROOTFS_DIR}/boot/"

0 comments on commit 7466565

Please sign in to comment.