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:
@@ -25,12 +25,27 @@ check_fstab() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare -r var_logfile="/root/.ciss/cdi/log/4205_check_fstab.log"
|
||||
|
||||
touch "${TARGET}${var_logfile}" && chmod 0600 "${TARGET}${var_logfile}"
|
||||
chroot_logger "${TARGET}${var_logfile}"
|
||||
|
||||
# shellcheck disable=SC2016 # an Internal script is only evaluated in chroot.
|
||||
do_in_target_script "${TARGET}" '
|
||||
export INITRD=No
|
||||
systemd-analyze verify /etc/fstab 2>&1 | tee -a '"${var_logfile}"'
|
||||
echo ExitCode: $? >> '"${var_logfile}"'
|
||||
|
||||
if [[ ! -s /etc/fstab ]]; then
|
||||
echo "ERROR: /etc/fstab missing or empty" >> '"${var_logfile}"'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
{
|
||||
findmnt --verify --verbose --tab-file /etc/fstab
|
||||
ec=$?
|
||||
|
||||
echo "--- mount -fav -n (dry-run) ---"
|
||||
mount -fav -n || true
|
||||
|
||||
echo "ExitCode(findmnt): ${ec}"
|
||||
exit "${ec}"
|
||||
} 2>&1 | tee -a '"${var_logfile}"'
|
||||
'
|
||||
|
||||
guard_dir && return 0
|
||||
|
||||
@@ -28,7 +28,7 @@ installation_cryptsetup() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare -r var_logfile="/root/.ciss/cdi/log/4220_installation_cryptsetup.log"
|
||||
|
||||
touch "${TARGET}${var_logfile}" && chmod 0600 "${TARGET}${var_logfile}"
|
||||
chroot_logger "${TARGET}${var_logfile}"
|
||||
|
||||
do_in_target_script "${TARGET}" '
|
||||
export INITRD=No
|
||||
|
||||
@@ -53,7 +53,7 @@ installation_grub() {
|
||||
declare -r var_logfile="/root/.ciss/cdi/log/4230_update_grub.log"
|
||||
declare var_background=""
|
||||
|
||||
touch "${TARGET}${var_logfile}" && chmod 0600 "${TARGET}${var_logfile}"
|
||||
chroot_logger "${TARGET}${var_logfile}"
|
||||
|
||||
get_grub_modinfo_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user