Skip to content

Commit a880e18

Browse files
committed
fixup! feat(rootfs-to-image): support ROOTFS_EXPORT_DIR and configurable ROOTFS_COMPRESSION
1 parent 6a1eb93 commit a880e18

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/functions/image/rootfs-to-image.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ function create_image_from_sdcard_rootfs() {
149149
run_host_command_logged mkdir -pv "${ROOTFS_EXPORT_DIR}"
150150
# --delete so files removed from the source rootfs don't survive in a
151151
# reused export tree (otherwise the NFS root silently drifts from the image).
152-
run_host_command_logged rsync -aHWh --delete $rsync_ea \
152+
# --delete-excluded additionally purges receiver-side files that match our
153+
# excludes (e.g. stale /home/* left over from a prior INCLUDE_HOME_DIR=yes build).
154+
run_host_command_logged rsync -aHWh --delete --delete-excluded $rsync_ea \
153155
--exclude="/boot/*" \
154156
--exclude="/dev/*" \
155157
--exclude="/proc/*" \

0 commit comments

Comments
 (0)