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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-07-08 19:08:11 +02:00
parent 474941e291
commit b546a0d4af
5 changed files with 379 additions and 362 deletions

View File

@@ -13,21 +13,24 @@
guard_sourcing
#######################################
# Install minimal Debian environment via debootstrap command.
# Install minimal Debian environment via 'debootstrap' command.
# Globals:
# ERR_DEBOOTSTRAP
# TARGET
# architecture
# distribution
# Arguments:
# None
# Returns:
# "${ERR_DEBOOTSTRAP}"
# 0: Successfully executed commands.
#######################################
func_debootstrap() {
if debootstrap --arch amd64 bookworm "${TARGET}" https://deb.debian.org/debian; then
do_log "info" "false" "Executing 'debootstrap --arch amd64 bookworm '${TARGET}' https://deb.debian.org/debian' successful."
if debootstrap --arch="${architecture}" "${distribution}" "${TARGET}" https://deb.debian.org/debian; then
do_log "info" "false" "Executing 'debootstrap --arch=${architecture} ${distribution} '${TARGET}' https://deb.debian.org/debian' successful."
return 0
else
do_log "emergency" "false" "Executing 'debootstrap --arch amd64 bookworm '${TARGET}' https://deb.debian.org/debian' NOT successful."
do_log "emergency" "false" "Executing 'debootstrap --arch=${architecture} ${distribution} '${TARGET}' https://deb.debian.org/debian' NOT successful."
return "${ERR_DEBOOTSTRAP}"
fi
}