diff options
| author | Sam Tygier <samtygier@yahoo.co.uk> | 2019-02-17 15:29:10 +0000 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2019-02-18 09:45:10 +0000 |
| commit | 82bcfa427ab697b59d1f863a18fc0862ab309876 (patch) | |
| tree | 5f755069ecae4ab82455895c16bd6ad779b90d1b /export-image | |
| parent | a8eb03a5e4f29ac48bf3fe427c2179f862e0a053 (diff) | |
Use different rsync options for boot and root
When copying files to boot, options that are not supported on fat32 can cause errors. For example owner, group and xattrs.
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/prerun.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/export-image/prerun.sh b/export-image/prerun.sh index bdf034a..7345792 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -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/" |
