make: rootfs: Support customize.sh

Projects can now include a `customize.sh` script.  If present, this
script will be run after the root filesystem hierarchy has been created,
but before the image is captured.  This allows projects to apply
additional customizations beyond adding or removing files.
This commit is contained in:
2024-12-13 19:26:05 -06:00
parent 6fff371b81
commit 869257701c

View File

@@ -57,8 +57,10 @@ $(O)/.ready: \
$(O)/semanage.mods \ $(O)/semanage.mods \
$(shell find overlay -type f) \ $(shell find overlay -type f) \
$(shell find $(CONFIGDIR)/overlay -type f 2>/dev/null) \ $(shell find $(CONFIGDIR)/overlay -type f 2>/dev/null) \
$(wildcard $(CONFIGDIR)/customize.sh) \
$(O)/.built $(O)/.built
./build-rootfs.sh "$(O)" ./build-rootfs.sh "$(O)"
if [ -x "$(CONFIGDIR)"/customize.sh ]; then "$(CONFIGDIR)"/customize.sh "$(O)"; fi
touch $(O)/.ready touch $(O)/.ready
$(O)/squashfs.exclude: \ $(O)/squashfs.exclude: \