V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -133,23 +133,29 @@ color_echo "${CYA}" "Dialog Output for Initialization START."
|
||||
if ! "${VAR_AUTO_INSTALL}"; then . ./lib/0200_dialog_helper.sh && dialog_box; fi
|
||||
|
||||
### ARGUMENT CHECKS.
|
||||
echo "ARGUMENT CHECKS..."
|
||||
arg_check "$@"
|
||||
declare -ar ARY_ARG_SANITIZED=("$@")
|
||||
declare -grx VAR_ARG_SANITIZED="${ARY_ARG_SANITIZED[*]}"
|
||||
|
||||
### ARGUMENT PARSING.
|
||||
echo "ARGUMENT PARSING..."
|
||||
arg_parser "$@"
|
||||
|
||||
### PRIORITY UPDATES.
|
||||
echo "PRIORITY UPDATES..."
|
||||
arg_priority_check
|
||||
|
||||
### HASHING PASSWORDS.
|
||||
echo "HASHING PASSWORDS..."
|
||||
nuke_passphrase
|
||||
# TODO: Implement func() for other passwords.
|
||||
|
||||
### MAIN PROGRAM SEQUENCE
|
||||
echo "MAIN PROGRAM SEQUENCE: yaml_parser()"
|
||||
yaml_parser
|
||||
# TODO: Check: yaml_reader()
|
||||
echo "MAIN PROGRAM SEQUENCE: yaml_reader()"
|
||||
yaml_reader
|
||||
|
||||
# TODO: Implement / Activate IP, Port validation
|
||||
@@ -157,6 +163,7 @@ yaml_reader
|
||||
# validation_preseed
|
||||
|
||||
### PARTITIONING
|
||||
echo "MAIN PROGRAM SEQUENCE: partitioning()"
|
||||
partitioning
|
||||
partition_encryption
|
||||
partition_formatting
|
||||
|
||||
@@ -100,7 +100,7 @@ do_in_target_script() {
|
||||
|
||||
declare -i var_chroot_rc="${?}"
|
||||
do_log "emergency" "file_only" "Failure: chroot '${var_chroot_target}': '${var_chroot_script}'."
|
||||
do_log "debug" "file_only" "Return code: '${var_chroot_rc}'."
|
||||
do_log "info" "file_only" "Return code: '${var_chroot_rc}'."
|
||||
|
||||
# TODO: Test with Dialog Wrapper in interactive mode.
|
||||
#if [[ "${DEBUG_INTERACTIVE}" == "true" ]]; then
|
||||
|
||||
@@ -50,7 +50,7 @@ yaml_reader() {
|
||||
if [[ -n "${VAR_RECIPE_STRING}" ]]; then
|
||||
do_log "info" "file_only" "Found active recipe string: '${VAR_RECIPE_STRING}'."
|
||||
else
|
||||
do_log "fatal" "file_only" "Found NO active recipe string: '${VAR_RECIPE_STRING}'." >&2
|
||||
do_log "fatal" "file_only" "Found NO active recipe string: '${VAR_RECIPE_STRING}'."
|
||||
exit "${ERR_NO_VALID_RECIPE}"
|
||||
fi
|
||||
|
||||
@@ -82,7 +82,7 @@ END { print max }
|
||||
if [[ -n "${VAR_RECIPE_DEV_COUNTER}" ]]; then
|
||||
do_log "info" "file_only" "Found highest recipe device: '${VAR_RECIPE_DEV_COUNTER}'."
|
||||
else
|
||||
do_log "fatal" "file_only" "Found NO highest recipe device: '${VAR_RECIPE_DEV_COUNTER}'." >&2
|
||||
do_log "fatal" "file_only" "Found NO highest recipe device: '${VAR_RECIPE_DEV_COUNTER}'."
|
||||
exit "${ERR_NO_VALID_RECIPE}"
|
||||
fi
|
||||
|
||||
|
||||
@@ -77,16 +77,18 @@ do_get_log_color() {
|
||||
# Arguments:
|
||||
# 1: "${LOG_LEVEL}" one of: "debug" | "info" | "notice" | "warn" | "error" | "critical" | "fatal" | "emergency"
|
||||
# 2: "${LOG_ONLY}" one of: "file_only" | "tty"
|
||||
# @: "${MESSAGE[*]}" arbitrary text string to log.
|
||||
# *: "${*}" arbitrary text string to log.
|
||||
#######################################
|
||||
do_log() {
|
||||
### Reading arguments.
|
||||
declare var_log_level="$1"; shift
|
||||
declare var_log_only="$2"; shift
|
||||
declare ary_message=("$@")
|
||||
declare var_msg_string="${ary_message[*]}"
|
||||
declare var_log_only="$1"; shift
|
||||
declare var_msg_string="${*}"
|
||||
|
||||
### Declare variables.
|
||||
declare var_color; var_color=$(do_get_log_color "${var_log_level}")
|
||||
declare var_ts; var_ts="$(date -u '+%Y-%m-%dT%H:%M:%S.%4N%z')"
|
||||
declare var_log_entry=("${var_ts} [${var_log_level}]: ${ary_message[*]}")
|
||||
declare var_log_entry=("${var_ts} [${var_log_level}]: ${var_msg_string}")
|
||||
|
||||
if do_should_log "${var_log_level}"; then
|
||||
if [[ "${var_log_only,,}" == "file_only" ]]; then
|
||||
|
||||
@@ -113,41 +113,41 @@ print_file_err() {
|
||||
# None
|
||||
#######################################
|
||||
print_scr_err() {
|
||||
printf "%b❌ CISS.debian.installer Script failed. %b%b" "${RED}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ GIT Commit : %s %b%b" "${RED}" "${VAR_GIT_REL}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Version : %s %b%b" "${RED}" "${VAR_VERSION}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Epoch : %s %b%b" "${RED}" "${EPOCHREALTIME}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash MAJ Release : %s %b%b" "${RED}" "${BASH_VERSINFO[0]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash MIN Version : %s %b%b" "${RED}" "${BASH_VERSINFO[1]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash Patch Level : %s %b%b" "${RED}" "${BASH_VERSINFO[2]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash Build Version : %s %b%b" "${RED}" "${BASH_VERSINFO[3]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash Release : %s %b%b" "${RED}" "${BASH_VERSINFO[4]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ UID : %s %b%b" "${RED}" "${UID}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ EUID : %s %b%b" "${RED}" "${EUID}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Hostname : %s %b%b" "${RED}" "${HOSTNAME}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Hostsystem : %s %b%b" "${RED}" "${VAR_SYSTEM}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Error : %s %b%b" "${RED}" "${ERRCODE}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Line : %s %b%b" "${RED}" "${ERRLINE}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Script : %s %b%b" "${RED}" "${ERRSCRT}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Function : %s %b%b" "${RED}" "${ERRFUNC}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Command : %s %b%b" "${RED}" "${ERRCMMD}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Script PID : %s %b%b" "${RED}" "${$}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Script Runtime : %s %b%b" "${RED}" "${SECONDS}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Arguments Counter : %s %b%b" "${RED}" "${VAR_PARAM_COUNT}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Arguments Original : %s %b%b" "${RED}" "${VAR_PARAM_STRNG}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Arguments Sanitized : %s %b%b" "${RED}" "${VAR_ARG_SANITIZED}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Error Log saved at : %s %b%b" "${RED}" "${LOG_ERR}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_ERR}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ CISS.debian.installer Script failed. %b%b" "${RED}" "${RES}" "${NL}"
|
||||
printf "%b❌ GIT Commit : %s %b%b" "${RED}" "${VAR_GIT_REL}" "${RES}" "${NL}"
|
||||
printf "%b❌ Version : %s %b%b" "${RED}" "${VAR_VERSION}" "${RES}" "${NL}"
|
||||
printf "%b❌ Epoch : %s %b%b" "${RED}" "${EPOCHREALTIME}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash MAJ Release : %s %b%b" "${RED}" "${BASH_VERSINFO[0]}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash MIN Version : %s %b%b" "${RED}" "${BASH_VERSINFO[1]}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash Patch Level : %s %b%b" "${RED}" "${BASH_VERSINFO[2]}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash Build Version : %s %b%b" "${RED}" "${BASH_VERSINFO[3]}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash Release : %s %b%b" "${RED}" "${BASH_VERSINFO[4]}" "${RES}" "${NL}"
|
||||
printf "%b❌ UID : %s %b%b" "${RED}" "${UID}" "${RES}" "${NL}"
|
||||
printf "%b❌ EUID : %s %b%b" "${RED}" "${EUID}" "${RES}" "${NL}"
|
||||
printf "%b❌ Hostname : %s %b%b" "${RED}" "${HOSTNAME}" "${RES}" "${NL}"
|
||||
printf "%b❌ Hostsystem : %s %b%b" "${RED}" "${VAR_SYSTEM}" "${RES}" "${NL}"
|
||||
printf "%b❌ Error : %s %b%b" "${RED}" "${ERRCODE}" "${RES}" "${NL}"
|
||||
printf "%b❌ Line : %s %b%b" "${RED}" "${ERRLINE}" "${RES}" "${NL}"
|
||||
printf "%b❌ Script : %s %b%b" "${RED}" "${ERRSCRT}" "${RES}" "${NL}"
|
||||
printf "%b❌ Function : %s %b%b" "${RED}" "${ERRFUNC}" "${RES}" "${NL}"
|
||||
printf "%b❌ Command : %s %b%b" "${RED}" "${ERRCMMD}" "${RES}" "${NL}"
|
||||
printf "%b❌ Script PID : %s %b%b" "${RED}" "${$}" "${RES}" "${NL}"
|
||||
printf "%b❌ Script Runtime : %s %b%b" "${RED}" "${SECONDS}" "${RES}" "${NL}"
|
||||
printf "%b❌ Arguments Counter : %s %b%b" "${RED}" "${VAR_PARAM_COUNT}" "${RES}" "${NL}"
|
||||
printf "%b❌ Arguments Original : %s %b%b" "${RED}" "${VAR_PARAM_STRNG}" "${RES}" "${NL}"
|
||||
printf "%b❌ Arguments Sanitized : %s %b%b" "${RED}" "${VAR_ARG_SANITIZED}" "${RES}" "${NL}"
|
||||
printf "%b❌ Error Log saved at : %s %b%b" "${RED}" "${LOG_ERR}" "${RES}" "${NL}"
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_ERR}" "${RES}" "${NL}"
|
||||
if [[ "${VAR_DEBUG_TRACE}" == "true" || "${VAR_DEBUG_TRAP}" == "true" ]]; then
|
||||
printf "%b❌ Vars Dump saved at : %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Vars Dump saved at : %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}"
|
||||
fi
|
||||
if [[ "${VAR_DEBUG_TRAP}" == "true" ]]; then
|
||||
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}"
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}"
|
||||
fi
|
||||
if [[ "${VAR_DEBUG_TRACE}" == "true" ]]; then
|
||||
printf "%b❌ Trace Log saved at : %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Trace Log saved at : %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}"
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}"
|
||||
fi
|
||||
print_stacktrace
|
||||
printf "%b" "${NL}"
|
||||
|
||||
@@ -134,37 +134,37 @@ trap_exit_non_zero() {
|
||||
gauge ) dialog_gauge_cleaner ;;
|
||||
esac
|
||||
clean_up "${var_code}"
|
||||
printf "%b❌ CISS.debian.installer Script failed. Most probably cause of unbound variable. %b%b" "${RED}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ GIT Commit : %s %b%b" "${RED}" "${VAR_GIT_REL}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Version : %s %b%b" "${RED}" "${VAR_VERSION}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Epoch : %s %b%b" "${RED}" "${EPOCHREALTIME}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash MAJ Release : %s %b%b" "${RED}" "${BASH_VERSINFO[0]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash MIN Version : %s %b%b" "${RED}" "${BASH_VERSINFO[1]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash Patch Level : %s %b%b" "${RED}" "${BASH_VERSINFO[2]}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ UID : %s %b%b" "${RED}" "${UID}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ EUID : %s %b%b" "${RED}" "${EUID}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Hostname : %s %b%b" "${RED}" "${HOSTNAME}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Hostsystem : %s %b%b" "${RED}" "${VAR_SYSTEM}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Error : %s %b%b" "${RED}" "${var_code}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Line : %s %b%b" "${RED}" "${var_line}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Script : %s %b%b" "${RED}" "${var_scrt}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Function : %s %b%b" "${RED}" "${var_func}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Command : %s %b%b" "${RED}" "${var_cmmd}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Script PID : %s %b%b" "${RED}" "${$}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Script Runtime : %s %b%b" "${RED}" "${SECONDS}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Arguments Counter : %s %b%b" "${RED}" "${VAR_PARAM_COUNT}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Arguments Original : %s %b%b" "${RED}" "${VAR_PARAM_STRNG}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Arguments Sanitized : %s %b%b" "${RED}" "${VAR_ARG_SANITIZED}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ CISS.debian.installer Script failed. This was most probably caused by an unbound variable. %b%b" "${RED}" "${RES}" "${NL}"
|
||||
printf "%b❌ GIT Commit : %s %b%b" "${RED}" "${VAR_GIT_REL}" "${RES}" "${NL}"
|
||||
printf "%b❌ Version : %s %b%b" "${RED}" "${VAR_VERSION}" "${RES}" "${NL}"
|
||||
printf "%b❌ Epoch : %s %b%b" "${RED}" "${EPOCHREALTIME}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash MAJ Release : %s %b%b" "${RED}" "${BASH_VERSINFO[0]}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash MIN Version : %s %b%b" "${RED}" "${BASH_VERSINFO[1]}" "${RES}" "${NL}"
|
||||
printf "%b❌ Bash Patch Level : %s %b%b" "${RED}" "${BASH_VERSINFO[2]}" "${RES}" "${NL}"
|
||||
printf "%b❌ UID : %s %b%b" "${RED}" "${UID}" "${RES}" "${NL}"
|
||||
printf "%b❌ EUID : %s %b%b" "${RED}" "${EUID}" "${RES}" "${NL}"
|
||||
printf "%b❌ Hostname : %s %b%b" "${RED}" "${HOSTNAME}" "${RES}" "${NL}"
|
||||
printf "%b❌ Hostsystem : %s %b%b" "${RED}" "${VAR_SYSTEM}" "${RES}" "${NL}"
|
||||
printf "%b❌ Error : %s %b%b" "${RED}" "${var_code}" "${RES}" "${NL}"
|
||||
printf "%b❌ Line : %s %b%b" "${RED}" "${var_line}" "${RES}" "${NL}"
|
||||
printf "%b❌ Script : %s %b%b" "${RED}" "${var_scrt}" "${RES}" "${NL}"
|
||||
printf "%b❌ Function : %s %b%b" "${RED}" "${var_func}" "${RES}" "${NL}"
|
||||
printf "%b❌ Command : %s %b%b" "${RED}" "${var_cmmd}" "${RES}" "${NL}"
|
||||
printf "%b❌ Script PID : %s %b%b" "${RED}" "${$}" "${RES}" "${NL}"
|
||||
printf "%b❌ Script Runtime : %s %b%b" "${RED}" "${SECONDS}" "${RES}" "${NL}"
|
||||
printf "%b❌ Arguments Counter : %s %b%b" "${RED}" "${VAR_PARAM_COUNT}" "${RES}" "${NL}"
|
||||
printf "%b❌ Arguments Original : %s %b%b" "${RED}" "${VAR_PARAM_STRNG}" "${RES}" "${NL}"
|
||||
printf "%b❌ Arguments Sanitized : %s %b%b" "${RED}" "${VAR_ARG_SANITIZED}" "${RES}" "${NL}"
|
||||
if [[ "${VAR_DEBUG_TRACE}" == "true" || "${VAR_DEBUG_TRAP}" == "true" ]]; then
|
||||
printf "%b❌ Vars Dump saved at : %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Vars Dump saved at : %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}"
|
||||
fi
|
||||
if [[ "${VAR_DEBUG_TRAP}" == "true" ]]; then
|
||||
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}"
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}"
|
||||
fi
|
||||
if [[ "${VAR_DEBUG_TRACE}" == "true" ]]; then
|
||||
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}"
|
||||
printf "%b❌ cat %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}"
|
||||
fi
|
||||
print_stacktrace
|
||||
fi
|
||||
|
||||
@@ -52,7 +52,7 @@ read_password_file() {
|
||||
declare -a lines=()
|
||||
|
||||
### No tracing for security reasons
|
||||
#[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||
if [[ ! -f "${var_input_file}" ]]; then
|
||||
do_log "fatal" "file_only" "Password file '${var_input_file}' not found."
|
||||
return "${ERR_READ_PASS_FILE}"
|
||||
@@ -76,7 +76,7 @@ read_password_file() {
|
||||
fi
|
||||
|
||||
### Turn on tracing again
|
||||
#[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||
|
||||
unset lines
|
||||
return 0
|
||||
|
||||
@@ -30,22 +30,22 @@ nuke_passphrase() {
|
||||
declare var_temp_nuke_hash="" var_temp_plain_nuke_pwd="" var_salt=""
|
||||
|
||||
### No tracing for security reasons
|
||||
#[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||
if ! read_password_file "${var_nuke_pwd_file}" var_temp_plain_nuke_pwd; then
|
||||
return "${ERR_READ_NUKE_FILE}"
|
||||
fi
|
||||
### Turn on tracing again
|
||||
#[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||
|
||||
if ! var_salt="$(generate_salt)"; then
|
||||
return "${ERR_GENERATE_SALT}"
|
||||
fi
|
||||
|
||||
### No tracing for security reasons
|
||||
#[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||
var_temp_nuke_hash=$(mkpasswd --method=sha-512 --salt="${var_salt}" --rounds=8388608 "${var_temp_plain_nuke_pwd}")
|
||||
### Turn on tracing again
|
||||
#[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||
|
||||
declare -grx VAR_NUKE_HASH="${var_temp_nuke_hash}"
|
||||
unset var_temp_nuke_hash var_temp_plain_nuke_pwd
|
||||
|
||||
@@ -10,60 +10,60 @@
|
||||
# SPDX-PackageName: CISS.debian.installer
|
||||
# SPDX-Security-Contact: security@coresecret.eu
|
||||
|
||||
. ./func/helper/1030_check_nic.sh
|
||||
. ./func/helper/1080_helper_chroot.sh
|
||||
. ./func/helper/1081_helper_grub.sh
|
||||
. ./func/helper/1082_helper_modules.sh
|
||||
. ./func/helper/1084_helper_sanitizer.sh
|
||||
. ./func/helper/1085_helper_secure_dl.sh
|
||||
. ./func/helper/1086_helper_yaml.sh
|
||||
. ./func/helper/1220_validation_element.sh
|
||||
. ./func/helper/1221_validation_ip.sh
|
||||
. ./func/helper/1222_validation_preseed.sh
|
||||
. ./func/helper/1250_yaml_parser.sh
|
||||
. ./func/helper/1251_yaml_reader.sh
|
||||
source_guard "./func/helper/1030_check_nic.sh"
|
||||
source_guard "./func/helper/1080_helper_chroot.sh"
|
||||
source_guard "./func/helper/1081_helper_grub.sh"
|
||||
source_guard "./func/helper/1082_helper_modules.sh"
|
||||
source_guard "./func/helper/1084_helper_sanitizer.sh"
|
||||
source_guard "./func/helper/1085_helper_secure_dl.sh"
|
||||
source_guard "./func/helper/1086_helper_yaml.sh"
|
||||
source_guard "./func/helper/1220_validation_element.sh"
|
||||
source_guard "./func/helper/1221_validation_ip.sh"
|
||||
source_guard "./func/helper/1222_validation_preseed.sh"
|
||||
source_guard "./func/helper/1250_yaml_parser.sh"
|
||||
source_guard "./func/helper/1251_yaml_reader.sh"
|
||||
|
||||
. ./func/partitioning/3200_partitioning.sh
|
||||
. ./func/partitioning/3220_partition_encryption.sh
|
||||
. ./func/partitioning/3240_partition_formatting.sh
|
||||
. ./func/partitioning/3260_setup_filesystem.sh
|
||||
. ./func/partitioning/3280_mount_partition.sh
|
||||
. ./func/partitioning/3290_uuid_logger.sh
|
||||
source_guard "./func/partitioning/3200_partitioning.sh"
|
||||
source_guard "./func/partitioning/3220_partition_encryption.sh"
|
||||
source_guard "./func/partitioning/3240_partition_formatting.sh"
|
||||
source_guard "./func/partitioning/3260_setup_filesystem.sh"
|
||||
source_guard "./func/partitioning/3280_mount_partition.sh"
|
||||
source_guard "./func/partitioning/3290_uuid_logger.sh"
|
||||
|
||||
. ./func/system/4000_debootstrap.sh
|
||||
. ./func/system/4020_configure_system.sh
|
||||
. ./func/system/4040_generate_fstab.sh
|
||||
. ./func/system/4060_generate_crypttab.sh
|
||||
. ./func/system/4080_generate_sources.sh
|
||||
. ./func/system/4090_minimal_toolset.sh
|
||||
. ./func/system/4095_setup_skel.sh
|
||||
. ./func/system/4100_setup_timezone.sh
|
||||
. ./func/system/4110_setup_locales.sh
|
||||
. ./func/system/4120_installation_kernel.sh
|
||||
. ./func/system/4130_setup_network.sh
|
||||
. ./func/system/4140_setup_hostname.sh
|
||||
. ./func/system/4150_setup_grub.sh
|
||||
. ./func/system/4155_setup_grub_password.sh
|
||||
. ./func/system/4160_grub_bootparameter.sh
|
||||
. ./func/system/4165_kernel_modules.sh
|
||||
. ./func/system/4166_kernel_sysctl.sh
|
||||
. ./func/system/4170_installation_microcode.sh
|
||||
. ./func/system/4180_setup_ssh.sh
|
||||
. ./func/system/4190_build_dropbear.sh
|
||||
. ./func/system/4191_install_dropbear_initramfs.sh
|
||||
. ./func/system/4195_setup_dropbear.sh
|
||||
. ./func/system/4200_setup_accounts.sh
|
||||
. ./func/system/4210_setup_packages.sh
|
||||
. ./func/system/4220_setup_sudo.sh
|
||||
. ./func/system/4230_setup_chrony.sh
|
||||
. ./func/system/4999_exiting_chroot_system.sh
|
||||
. ./func/system/5000_hardening_files.sh
|
||||
source_guard "./func/system/4000_debootstrap.sh"
|
||||
source_guard "./func/system/4020_configure_system.sh"
|
||||
source_guard "./func/system/4040_generate_fstab.sh"
|
||||
source_guard "./func/system/4060_generate_crypttab.sh"
|
||||
source_guard "./func/system/4080_generate_sources.sh"
|
||||
source_guard "./func/system/4090_minimal_toolset.sh"
|
||||
source_guard "./func/system/4095_setup_skel.sh"
|
||||
source_guard "./func/system/4100_setup_timezone.sh"
|
||||
source_guard "./func/system/4110_setup_locales.sh"
|
||||
source_guard "./func/system/4120_installation_kernel.sh"
|
||||
source_guard "./func/system/4130_setup_network.sh"
|
||||
source_guard "./func/system/4140_setup_hostname.sh"
|
||||
source_guard "./func/system/4150_setup_grub.sh"
|
||||
source_guard "./func/system/4155_setup_grub_password.sh"
|
||||
source_guard "./func/system/4160_grub_bootparameter.sh"
|
||||
source_guard "./func/system/4165_kernel_modules.sh"
|
||||
source_guard "./func/system/4166_kernel_sysctl.sh"
|
||||
source_guard "./func/system/4170_installation_microcode.sh"
|
||||
source_guard "./func/system/4180_setup_ssh.sh"
|
||||
source_guard "./func/system/4190_build_dropbear.sh"
|
||||
source_guard "./func/system/4191_install_dropbear_initramfs.sh"
|
||||
source_guard "./func/system/4195_setup_dropbear.sh"
|
||||
source_guard "./func/system/4200_setup_accounts.sh"
|
||||
source_guard "./func/system/4210_setup_packages.sh"
|
||||
source_guard "./func/system/4220_setup_sudo.sh"
|
||||
source_guard "./func/system/4230_setup_chrony.sh"
|
||||
source_guard "./func/system/4999_exiting_chroot_system.sh"
|
||||
source_guard "./func/system/5000_hardening_files.sh"
|
||||
|
||||
#. ./func/recovery/3.8.9.functions_installation_wrapper_recovery.sh
|
||||
#. ./func/recovery/3.9.0.functions_installation_setup_recovery.sh
|
||||
#. ./func/recovery/3.9.1.functions_installation_generate_files_recovery.sh
|
||||
#source_guard "./func/recovery/3.8.9.functions_installation_wrapper_recovery.sh"
|
||||
#source_guard "./func/recovery/3.9.0.functions_installation_setup_recovery.sh"
|
||||
#source_guard "./func/recovery/3.9.1.functions_installation_generate_files_recovery.sh"
|
||||
|
||||
#. ./func/9998_check_sshd_config_integrity.sh
|
||||
#. ./func/9999_check_grub_cmdline.sh
|
||||
#source_guard "./func/9998_check_sshd_config_integrity.sh"
|
||||
#source_guard "./func/9999_check_grub_cmdline.sh"
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user