V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 59s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-14 13:49:38 +02:00
parent d9a1c926de
commit 175cfd0bff
2 changed files with 95 additions and 56 deletions

View File

@@ -154,7 +154,7 @@ chroot_script() {
}
#######################################
# Run the installer-desired code via stdin inside the chroot with bash -s.
# Run the installer-desired code incl. positional arguments via stdin (HEREDEC) inside the chroot with bash -s.
# Globals:
# BASH_SOURCE
# TERM
@@ -163,9 +163,9 @@ chroot_script() {
# VAR_DEBUG_TRAP
# VAR_IN_DIALOG_WR
# Arguments:
# 1: Target of the chroot environment
# 2: Command string to execute inside a shell (quoted)
# 3: Log level of command pipeline to be executed.
# 1: Target of chroot environment
# 2: Command string to execute inside a shell (HEREDOC):
# chroot_stdin "${TARGET}" "__payload__" -- "${ARG1}" "${ARG2}" ... <<'EOF' ... EOF
# Returns:
# 0: on success
# ERR_CHRT_COMMAND: on failure
@@ -193,7 +193,7 @@ chroot_stdin() {
DEBIAN_FRONTEND="noninteractive" \
APT_LISTCHANGES_FRONTEND="none" \
/bin/bash -o errexit -o errtrace -o functrace -o nounset -o pipefail \
-O inherit_errexit -O failglob -O lastpipe -s
-O inherit_errexit -O failglob -O lastpipe -s -- "$@"
then