Split out base squashfs.exclude

Variants no longer need to specify the full contents of the
`squashfs.exclude` file.  The "base" file in the source directory gets
combined with the one from the config directory (if it exists).
gentoo
Dustin 2023-03-26 11:50:09 -05:00
parent 2854380e2d
commit 0bc861ced1
3 changed files with 11 additions and 5 deletions

View File

@ -53,11 +53,17 @@ $(O)/.ready: \
./build-rootfs.sh ./build-rootfs.sh
touch $(O)/.ready touch $(O)/.ready
$(O)/squashfs.exclude: \
squashfs.exclude \
$(shell test -f $(CONFIGDIR)/squashfs.exclude && echo $(CONFIGDIR)/squashfs.exclude)
mkdir -p $(O)
sort $^ > $@
$(IMAGESDIR)/rootfs.squashfs: \ $(IMAGESDIR)/rootfs.squashfs: \
build-squashfs.sh \ build-squashfs.sh \
$(CONFIGDIR)/squashfs.exclude \ $(O)/squashfs.exclude \
$(O)/.ready $(O)/.ready
./build-squashfs.sh "$(IMAGESDIR)" ./build-squashfs.sh "$(O)" "$(IMAGESDIR)"
squashfs: $(IMAGESDIR)/rootfs.squashfs squashfs: $(IMAGESDIR)/rootfs.squashfs

View File

@ -5,14 +5,15 @@ set -e
. "${CONFIGDIR:=${PWD}}"/config . "${CONFIGDIR:=${PWD}}"/config
IMAGESDIR="${1}" O="${1}"
IMAGESDIR="${2}"
mkdir -p "${IMAGESDIR}" mkdir -p "${IMAGESDIR}"
mksquashfs \ mksquashfs \
/mnt/gentoo \ /mnt/gentoo \
"${IMAGESDIR}"/rootfs.squashfs \ "${IMAGESDIR}"/rootfs.squashfs \
-comp gzip \ -comp gzip \
-ef "${CONFIGDIR}"/squashfs.exclude \ -ef "${O}"/squashfs.exclude \
-no-exports \ -no-exports \
-noappend \ -noappend \
-wildcards -wildcards

View File

@ -12,7 +12,6 @@ etc/python-exec
etc/runlevels etc/runlevels
etc/selinux/semanage.conf etc/selinux/semanage.conf
etc/selinux/sepolgen.conf etc/selinux/sepolgen.conf
usr/aarch64-unknown-linux-gnu
usr/bin/2to3* usr/bin/2to3*
usr/bin/audit2* usr/bin/audit2*
usr/bin/chcat usr/bin/chcat