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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-09 08:31:25 +02:00
parent 91f115a2d0
commit 12c7b2eab4
5 changed files with 64 additions and 2 deletions

View File

@@ -273,6 +273,8 @@ info_echo "4205_check_fstab.sh"
check_fstab
info_echo "4210_generate_crypttab.sh"
generate_crypttab
info_echo "4215_check_crypttab.sh"
check_crypttab
info_echo "4220_installation_cryptsetup.sh"
installation_cryptsetup
info_echo "4230_installation_grub.sh"

View File

@@ -12,7 +12,6 @@
guard_sourcing
#######################################
# Wrapper for preparing logfile inside chroot.
# Globals:
@@ -118,6 +117,34 @@ insert_comments() {
return 0
}
#######################################
# Wrapper to insert the SPDX Header into the specified file.
# Globals:
# None
# Arguments:
# 1: /path/to/file
# Returns:
# 0: on success
#######################################
insert_header() {
# shellcheck disable=SC2155
declare var_date="$(date +%F)"
cat << EOF >| "${1}"
# SPDX-CreationInfo: ${var_date}; WEIDNER, Marc S.; <msw@coresecret.dev>
# SPDX-ExternalRef: GIT https://git.coresecret.dev/msw/CISS.debian.installer.git
# SPDX-FileContributor: WEIDNER, Marc S.; Centurion Intelligence Consulting Agency
# SPDX-FileCopyrightText: 2024-2025; WEIDNER, Marc S.; <msw@coresecret.dev>
# SPDX-FileType: SOURCE
# SPDX-License-Identifier: EUPL-1.2 OR LicenseRef-CCLA-1.0
# SPDX-LicenseComment: This file is part of the CISS.debian.installer.secure framework.
# SPDX-PackageName: CISS.debian.installer
# SPDX-Security-Contact: security@coresecret.eu
EOF
chmod 0644 "${1}"
return 0
}
#######################################
# Helper module for update, full dist-upgrade, autoclean, autopurge and autoremove.
# Arguments:

View File

@@ -13,7 +13,7 @@
guard_sourcing
#######################################
# Basic /etc/fstab checks inside chroot.
# Basic '/etc/fstab' checks inside chroot.
# Globals:
# TARGET
# Arguments:

View File

@@ -0,0 +1,32 @@
#!/bin/bash
# SPDX-Version: 3.0
# SPDX-CreationInfo: 2025-06-17; WEIDNER, Marc S.; <msw@coresecret.dev>
# SPDX-ExternalRef: GIT https://git.coresecret.dev/msw/CISS.debian.installer.git
# SPDX-FileContributor: WEIDNER, Marc S.; Centurion Intelligence Consulting Agency
# SPDX-FileCopyrightText: 2024-2025; WEIDNER, Marc S.; <msw@coresecret.dev>
# SPDX-FileType: SOURCE
# SPDX-License-Identifier: EUPL-1.2 OR LicenseRef-CCLA-1.0
# SPDX-LicenseComment: This file is part of the CISS.debian.installer.secure framework.
# SPDX-PackageName: CISS.debian.installer
# SPDX-Security-Contact: security@coresecret.eu
guard_sourcing
# TODO: Implement this function
#######################################
# Basic '/etc/crypttab' checks inside chroot.
# Globals:
# TARGET
# Arguments:
# None
# Returns:
# 0: on success
#######################################
check_crypttab() {
### Declare Arrays, HashMaps, and Variables.
#declare -r var_logfile="/root/.ciss/cdi/log/4215_check_crypttab.log"
#chroot_logger "${TARGET}${var_logfile}"
guard_dir && return 0
}
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh

View File

@@ -63,6 +63,7 @@ source_guard "./func/cdi_4100_base/4150_installation_chrony.sh"
source_guard "./func/cdi_4200_boot/4200_generate_fstab.sh"
source_guard "./func/cdi_4200_boot/4205_check_fstab.sh"
source_guard "./func/cdi_4200_boot/4210_generate_crypttab.sh"
source_guard "./func/cdi_4200_boot/4215_check_crypttab.sh"
source_guard "./func/cdi_4200_boot/4220_installation_cryptsetup.sh"
source_guard "./func/cdi_4200_boot/4230_installation_grub.sh"
source_guard "./func/cdi_4200_boot/4240_update_grub_password.sh"