build-squashfs: Allow defining pseudo files
The `mksquashfs` command accepts a `-pf` argument, which specifies a file that defines "pseudo files." Each line in the file defines some file path and an operation to perform on that path *in the generated filesystem image*. This allows, e.g. creating files, changing their permissions, etc. that cannot be done in the source directory for whatever reason. Aimee OS now allows a variant to provide a pseudo file definition file for `mksquashfs` by creating a `squashfs.pseudo` file in its configuration directory.master
parent
4a2d63c8db
commit
111c5967fd
5
Makefile
5
Makefile
|
@ -59,9 +59,14 @@ $(O)/squashfs.exclude: \
|
||||||
mkdir -p $(O)
|
mkdir -p $(O)
|
||||||
sort $^ > $@
|
sort $^ > $@
|
||||||
|
|
||||||
|
$(O)/squashfs.pseudo: \
|
||||||
|
$(wildcard $(CONFIGDIR)/squashfs.pseudo)
|
||||||
|
sort /dev/null $^ > $@
|
||||||
|
|
||||||
$(IMAGESDIR)/rootfs.squashfs: \
|
$(IMAGESDIR)/rootfs.squashfs: \
|
||||||
build-squashfs.sh \
|
build-squashfs.sh \
|
||||||
$(O)/squashfs.exclude \
|
$(O)/squashfs.exclude \
|
||||||
|
$(O)/squashfs.pseudo \
|
||||||
$(O)/.ready
|
$(O)/.ready
|
||||||
./build-squashfs.sh "$(O)" "$(IMAGESDIR)"
|
./build-squashfs.sh "$(O)" "$(IMAGESDIR)"
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ mksquashfs \
|
||||||
"${IMAGESDIR}"/rootfs.squashfs \
|
"${IMAGESDIR}"/rootfs.squashfs \
|
||||||
-comp gzip \
|
-comp gzip \
|
||||||
-ef "${O}"/squashfs.exclude \
|
-ef "${O}"/squashfs.exclude \
|
||||||
|
-pf "${O}"/squashfs.pseudo \
|
||||||
-no-exports \
|
-no-exports \
|
||||||
-noappend \
|
-noappend \
|
||||||
-wildcards
|
-wildcards
|
||||||
|
|
Reference in New Issue