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).
This commit is contained in:
10
Makefile
10
Makefile
@@ -53,11 +53,17 @@ $(O)/.ready: \
|
||||
./build-rootfs.sh
|
||||
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: \
|
||||
build-squashfs.sh \
|
||||
$(CONFIGDIR)/squashfs.exclude \
|
||||
$(O)/squashfs.exclude \
|
||||
$(O)/.ready
|
||||
./build-squashfs.sh "$(IMAGESDIR)"
|
||||
./build-squashfs.sh "$(O)" "$(IMAGESDIR)"
|
||||
|
||||
squashfs: $(IMAGESDIR)/rootfs.squashfs
|
||||
|
||||
|
||||
@@ -5,14 +5,15 @@ set -e
|
||||
|
||||
. "${CONFIGDIR:=${PWD}}"/config
|
||||
|
||||
IMAGESDIR="${1}"
|
||||
O="${1}"
|
||||
IMAGESDIR="${2}"
|
||||
|
||||
mkdir -p "${IMAGESDIR}"
|
||||
mksquashfs \
|
||||
/mnt/gentoo \
|
||||
"${IMAGESDIR}"/rootfs.squashfs \
|
||||
-comp gzip \
|
||||
-ef "${CONFIGDIR}"/squashfs.exclude \
|
||||
-ef "${O}"/squashfs.exclude \
|
||||
-no-exports \
|
||||
-noappend \
|
||||
-wildcards
|
||||
|
||||
@@ -12,7 +12,6 @@ etc/python-exec
|
||||
etc/runlevels
|
||||
etc/selinux/semanage.conf
|
||||
etc/selinux/sepolgen.conf
|
||||
usr/aarch64-unknown-linux-gnu
|
||||
usr/bin/2to3*
|
||||
usr/bin/audit2*
|
||||
usr/bin/chcat
|
||||
Reference in New Issue
Block a user