V8.13.440.2025.11.19

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-11-19 16:21:33 +00:00
parent 3132c53b85
commit 793bf07e18
9 changed files with 61 additions and 50 deletions

View File

@@ -22,25 +22,33 @@
setup_unionfs ()
{
printf "\e[95m[INFO] Starting: [/usr/lib/live/boot/9990-overlay.sh] ... \n\e[0m"
image_directory="${1}"
rootmnt="${2}"
addimage_directory="${3}"
# --- CISS hook: allow explicit root override --------------------------------------------------------------------------------
if [ -n "${CISS_ROOT_DEV}" ]; then
### CISS hook: allow explicit root override ----------------------------------------------------------------------------------
if [ -z "${CISS_ROOT_DEV:-}" ] && [ -r /run/ciss-rootdev ]; then
### Treat a block device as a plain root.
CISS_ROOT_DEV=$(cat /run/ciss-rootdev 2>/dev/null || printf '')
fi
if [ -n "${CISS_ROOT_DEV:-}" ]; then
### Treat the decrypted block device as plain root (e.g., squashfs on LUKS).
PLAIN_ROOT=1
image_directory="${CISS_ROOT_DEV}"
elif [ -n "${CISS_ROOT_DIR}" ]; then
elif [ -n "${CISS_ROOT_DIR:-}" ]; then
### Treat a directory as a plain root.
### Alternative: explicitly provided root directory.
PLAIN_ROOT=1
image_directory="${CISS_ROOT_DIR}"
fi
# ----------------------------------------------------------------------------------------------------------------------------
### --------------------------------------------------------------------------------------------------------------------------
# shellcheck disable=SC2086
modprobe -q -b ${UNIONTYPE}
@@ -484,4 +492,6 @@ setup_unionfs ()
fi
done
fi
printf "\e[92m[INFO] Successfully applied: [/usr/lib/live/boot/9990-overlay.sh] ... \n\e[0m"
}