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
parent
2854380e2d
commit
0bc861ced1
10
Makefile
10
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue