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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-07-31 00:22:50 +02:00
parent d96b8a5382
commit a40c2efe51
13 changed files with 18 additions and 14 deletions

View File

@@ -67,6 +67,7 @@ minimal_toolset() {
)
declare -a ary_missing_pkgs=() ary_unique_pkgs=()
declare -r var_logfile="${DIR_LOG}/4090_minimal_toolset_install.log"
declare var_bin="" var_bin=""
### Installation most basic packages.
@@ -88,19 +89,20 @@ minimal_toolset() {
# shellcheck disable=SC2312
mapfile -t ary_unique_pkgs < <(printf '%s\n' "${ary_missing_pkgs[@]}" | sort -u)
do_log "debug" "file_only" "4090() [ary_unique_pkgs]='${ary_unique_pkgs[*]}'."
do_in_target "${TARGET}" apt-get install -y --no-install-recommends "${ary_unique_pkgs[@]}"
# shellcheck disable=SC2312
do_in_target "${TARGET}" apt-get install -y --no-install-recommends "${ary_unique_pkgs[@]}" 2>&1 | tee -a "${var_logfile}"
fi
### Ensure systemd and machine-id are in place
if ! do_in_target_script "${TARGET}" "command -v systemctl >/dev/null"; then
do_log "info" "file_only" "4090() 'systemctl' not found installing 'systemd' and dependencies."
do_log "info" "file_only" "4090() 'systemctl' NOT found, installing 'systemd' and dependencies."
do_in_target "${TARGET}" apt-get install -y --no-install-recommends systemd systemd-sysv dbus
else
do_log "info" "file_only" "4090() 'systemctl' found skipping installation of systemd."
do_log "info" "file_only" "4090() 'systemctl' found, skipping installation of systemd."
fi
@@ -112,7 +114,7 @@ minimal_toolset() {
else
do_log "info" "file_only" "4090() Existing machine-id found no action needed."
do_log "info" "file_only" "4090() Existing 'machine-id' found, no action needed."
fi