V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -422,26 +422,29 @@ main() {
|
|||||||
trap 'trap_on_exit' EXIT
|
trap 'trap_on_exit' EXIT
|
||||||
trap 'trap_on_term' INT TERM
|
trap 'trap_on_term' INT TERM
|
||||||
|
|
||||||
|
printf "%b" "${NL}"
|
||||||
color_echo "${RED}" "Coresecret Connection established."
|
color_echo "${RED}" "Coresecret Connection established."
|
||||||
color_echo "${RED}" "Starting Time: ${CURRENTDATE}"
|
color_echo "${RED}" "Starting Time: ${CURRENTDATE}"
|
||||||
color_echo "${MAG}" "Integrity self-check ..."
|
|
||||||
printf "%b" "${NL}"
|
|
||||||
|
|
||||||
|
printf "%b" "${NL}"
|
||||||
|
color_echo "${MAG}" "Integrity self-check ..."
|
||||||
#verify_script
|
#verify_script
|
||||||
|
|
||||||
### Read newline-separated output into an array.
|
### Read newline-separated output into an array.
|
||||||
color_echo "${MAG}" "Scanning for LUKS devices ..."
|
|
||||||
printf "%b" "${NL}"
|
printf "%b" "${NL}"
|
||||||
|
color_echo "${MAG}" "Scanning for LUKS devices ..."
|
||||||
# shellcheck disable=SC2312
|
# shellcheck disable=SC2312
|
||||||
mapfile -t DEVICES_LUKS < <(gather_luks_devices)
|
mapfile -t DEVICES_LUKS < <(gather_luks_devices)
|
||||||
|
|
||||||
### If there are no LUKS devices at all, drop to bash.
|
### If there are no LUKS devices at all, drop to bash.
|
||||||
if (( ${#DEVICES_LUKS[@]} == 0 )); then
|
if (( ${#DEVICES_LUKS[@]} == 0 )); then
|
||||||
|
printf "%b" "${NL}"
|
||||||
color_echo "${RED}" "✘ No LUKS Devices found. Dropping to bash ..."
|
color_echo "${RED}" "✘ No LUKS Devices found. Dropping to bash ..."
|
||||||
drop_bash
|
drop_bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Extract the 'nuke='-parameter from '/proc/cmdline'.
|
### Extract the 'nuke='-parameter from '/proc/cmdline'.
|
||||||
|
printf "%b" "${NL}"
|
||||||
extract_nuke_hash
|
extract_nuke_hash
|
||||||
|
|
||||||
### Read passphrase interactively.
|
### Read passphrase interactively.
|
||||||
|
|||||||
@@ -18,9 +18,12 @@ case "${1}" in
|
|||||||
prereqs) prereqs; exit 0 ;;
|
prereqs) prereqs; exit 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
mkdir -p /run/ciss
|
||||||
|
printf '%s\n' "${PATH}" >| /run/ciss/fixpath_init_bottom_early.log
|
||||||
|
|
||||||
### Make sure /usr/local/bin is in front of 'PATH'.
|
### Make sure /usr/local/bin is in front of 'PATH'.
|
||||||
export PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr"
|
export PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr"
|
||||||
|
|
||||||
printf '%s\n' "${PATH}" >| /run/ciss/fixpath.final
|
printf '%s\n' "${PATH}" >| /run/ciss/fixpath_init_bottom_late.log
|
||||||
|
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ case "${1}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
mkdir -p /run/ciss
|
mkdir -p /run/ciss
|
||||||
printf '%s\n' "${PATH}" >| /run/ciss/fixpath_early.initial
|
printf '%s\n' "${PATH}" >| /run/ciss/fixpath_init_top_early.log
|
||||||
|
|
||||||
### Make sure /usr/local/bin is in front of 'PATH'.
|
### Make sure /usr/local/bin is in front of 'PATH'.
|
||||||
export PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr"
|
export PATH="/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr"
|
||||||
|
|
||||||
printf '%s\n' "${PATH}" >| /run/ciss/fixpath_late.initial
|
printf '%s\n' "${PATH}" >| /run/ciss/fixpath_init_top_late.log
|
||||||
|
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
Reference in New Issue
Block a user