This repository has been archived on 2025-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
Files
home-assistant-yellow/build-squashfs.sh
Dustin C. Hatch 111c5967fd 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.
2023-03-30 09:03:45 -05:00

21 lines
336 B
Bash
Executable File

#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
set -e
. "${CONFIGDIR:=${PWD}}"/config
O="${1}"
IMAGESDIR="${2}"
mkdir -p "${IMAGESDIR}"
mksquashfs \
/mnt/gentoo \
"${IMAGESDIR}"/rootfs.squashfs \
-comp gzip \
-ef "${O}"/squashfs.exclude \
-pf "${O}"/squashfs.pseudo \
-no-exports \
-noappend \
-wildcards