diff --git a/Makefile b/Makefile index 0842844..7889c0b 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,11 @@ $(O)/.built: \ ./build.sh touch $(O)/.built +$(O)/semanage.mods: \ + semanage.mods \ + $(wildcard $(CONFIGDIR)/semanage.mods) + cat $^ > $@ + $(O)/.ready: \ build-rootfs.sh \ install.packages \ @@ -46,11 +51,12 @@ $(O)/.ready: \ $(CONFIGDIR)/installonly.packages \ $(CONFIGDIR)/busybox.symlinks \ $(O)/linux/arch/arm64/boot/Image.gz \ + $(O)/semanage.mods \ $(shell find overlay -type f) \ $(shell find $(CONFIGDIR)/overlay -type f 2>/dev/null) \ $(O)/.host-tools \ $(O)/.built - ./build-rootfs.sh + ./build-rootfs.sh "$(O)" touch $(O)/.ready $(O)/squashfs.exclude: \ diff --git a/build-rootfs.sh b/build-rootfs.sh index 655926c..c8d64ff 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -5,6 +5,8 @@ set -e . "${CONFIGDIR:=${PWD}}"/config +O="${1}" + mkdir -p \ /mnt/gentoo/usr/bin \ /mnt/gentoo/usr/lib \ @@ -97,10 +99,7 @@ fi unshare -m sh -e <