From 869257701ccd64642e00d58437d0611274f6659a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 13 Dec 2024 19:26:05 -0600 Subject: [PATCH] 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. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 83edadc..142e6b7 100644 --- a/Makefile +++ b/Makefile @@ -57,8 +57,10 @@ $(O)/.ready: \ $(O)/semanage.mods \ $(shell find overlay -type f) \ $(shell find $(CONFIGDIR)/overlay -type f 2>/dev/null) \ + $(wildcard $(CONFIGDIR)/customize.sh) \ $(O)/.built ./build-rootfs.sh "$(O)" + if [ -x "$(CONFIGDIR)"/customize.sh ]; then "$(CONFIGDIR)"/customize.sh "$(O)"; fi touch $(O)/.ready $(O)/squashfs.exclude: \