We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df2d6c5 commit f4018a8Copy full SHA for f4018a8
1 file changed
lib/functions/image/rootfs-to-image.sh
@@ -149,7 +149,9 @@ function create_image_from_sdcard_rootfs() {
149
run_host_command_logged mkdir -pv "${ROOTFS_EXPORT_DIR}"
150
# --delete so files removed from the source rootfs don't survive in a
151
# reused export tree (otherwise the NFS root silently drifts from the image).
152
- run_host_command_logged rsync -aHWh --delete $rsync_ea \
+ # --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 \
155
--exclude="/boot/*" \
156
--exclude="/dev/*" \
157
--exclude="/proc/*" \
0 commit comments