V8.13.440.2025.11.19
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 2m37s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-11-25 12:31:38 +00:00
parent ff2aa607ff
commit 6b9f36b044
9 changed files with 1362 additions and 95 deletions

View File

@@ -31,25 +31,18 @@ setup_unionfs ()
addimage_directory="${3}"
### CISS hook: allow explicit root override ----------------------------------------------------------------------------------
#if [ -z "${CISS_ROOT_DEV:-}" ] && [ -r /run/ciss-rootdev ]; then
if [ -r /run/ciss-rootdev ]; then
# CISS_ROOT_DEV=$(cat /run/ciss-rootdev 2>/dev/null || printf '')
. /run/ciss-rootdev
#fi
export PLAIN_ROOT=1
export image_directory="${CDLB_MAPPER_DEV}"
#if [ -n "${CISS_ROOT_DEV:-}" ]; then
printf "\e[92m[INFO] setup_unionfs() : [image_directory=%s] \n\e[0m" "${image_directory}"
printf "\e[92m[INFO] setup_unionfs() : [rootmnt=%s] \n\e[0m" "${rootmnt}"
printf "\e[92m[INFO] setup_unionfs() : [addimage_directory=%s] \n\e[0m" "${addimage_directory}"
### 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
### Alternative: explicitly provided root directory.
# PLAIN_ROOT=1
# image_directory="${CISS_ROOT_DIR}"
#fi
fi
### --------------------------------------------------------------------------------------------------------------------------
# shellcheck disable=SC2086