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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-12 22:17:56 +02:00
parent 5b6833fc78
commit 1b59ab5b4c
3 changed files with 9 additions and 8 deletions

View File

@@ -36,29 +36,38 @@ mkdir -p "${DESTDIR}/etc/initramfs-tools/scripts/init-premount"
### Include Bash
copy_exec /usr/bin/bash /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/bash /usr/bin]."
### Include Busybox
copy_exec /usr/bin/busybox /usr/bin
copy_exec /usr/bin/busybox /bin
echo "Successfully executed: [copy_exec /usr/bin/busybox /usr/bin]."
### Include lsblk (block device info tool)
copy_exec /usr/bin/lsblk /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/lsblk /usr/bin]."
### Include mkpasswd
copy_exec /usr/bin/mkpasswd /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/mkpasswd /usr/bin]."
### Include udevadm (udev management tool)
copy_exec /usr/bin/udevadm /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/udevadm /usr/bin."
### Include sha512sum e.g.
copy_exec /usr/bin/sha512sum /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/sha512sum /usr/bin]."
copy_exec /usr/bin/sha384sum /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/sha384sum /usr/bin]."
### Include Signature-Verifier
copy_exec /usr/bin/gpgv /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/gpgv /usr/bin]."
### Include Whois
copy_exec /usr/bin/whois /usr/bin
echo "Successfully executed: [copy_exec /usr/bin/whois /usr/bin]."
### Link busybox applets for compatibility
for dir in bin usr/bin; do

View File

@@ -149,21 +149,17 @@ print_scr_err() {
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❌ SHELLOPTS : %s %b%b" "${RED}" "${SHELLOPTS}" "${RES}" "${NL}"
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Error Log saved at : %s %b%b" "${RED}" "${LOG_ERR}" "${RES}" "${NL}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_ERR}" "${RES}" "${NL}"
if [[ "${VAR_DEBUG_TRACE}" == "true" || "${VAR_DEBUG_TRAP}" == "true" ]]; then
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Vars Dump saved at : %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}"
fi
if [[ "${VAR_DEBUG_TRAP}" == "true" ]]; then
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}"
fi
if [[ "${VAR_DEBUG_TRACE}" == "true" ]]; then
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Trace Log saved at : %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}"
fi

View File

@@ -186,21 +186,17 @@ trap_exit_non_zero() {
printf "%b❌ Arguments Sanitized : %s %b%b" "${RED}" "${VAR_ARG_SANITIZED}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
printf "%b❌ BASHOPTS : %s %b%b" "${RED}" "${BASHOPTS}" "${RES}" "${NL}" >> "${LOG_EXT}"
printf "%b❌ SHELLOPTS : %s %b%b" "${RED}" "${SHELLOPTS}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Error Log saved at : %s %b%b" "${RED}" "${LOG_EXT}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_EXT}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
if [[ "${VAR_DEBUG_TRACE}" == "true" || "${VAR_DEBUG_TRAP}" == "true" ]]; then
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Vars Dump saved at : %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_VAR}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
fi
if [[ "${VAR_DEBUG_TRAP}" == "true" ]]; then
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Debug Log saved at : %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_DBG}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
fi
if [[ "${VAR_DEBUG_TRACE}" == "true" ]]; then
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
printf "%b❌ Trace Log saved at : %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
printf "%b❌ batcat --pager='less -r' %s %b%b" "${RED}" "${LOG_TRC}" "${RES}" "${NL}" | tee -a "${LOG_EXT}"
fi