mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
flash-sync: update only DTBs the image already ships
The per-image DTB set is curated by config.xml (the clone image carries boards the original image deliberately leaves out), so the sync must never add files to /flash/dtbs, only refresh the ones present. Caught on the first hardware run: a clean sync on the original image added three clone-only DTBs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -97,6 +97,11 @@ fi
|
||||
if [ -d "${SRC}/device_trees" ] && [ -d "${BOOT}/dtbs" ]; then
|
||||
for dtb in "${SRC}/device_trees/"*.dtb; do
|
||||
[ -f "${dtb}" ] || continue
|
||||
# Update only DTBs the image already ships: config.xml curates the
|
||||
# per-image DTB list (the clone image carries boards the original
|
||||
# image deliberately leaves out), so adding files here would undo
|
||||
# that curation. Content never diverges for same-named DTBs.
|
||||
[ -f "${BOOT}/dtbs/$(basename "${dtb}")" ] || continue
|
||||
sync_file "${dtb}" "${BOOT}/dtbs/$(basename "${dtb}")"
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user