V8.13.440.2025.11.19
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m27s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m27s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -29,17 +29,6 @@ guard_sourcing || return "${ERR_GUARD_SRCE}"
|
|||||||
run_analysis() {
|
run_analysis() {
|
||||||
if ! ${VAR_HANDLER_AUTOBUILD}; then clear; fi
|
if ! ${VAR_HANDLER_AUTOBUILD}; then clear; fi
|
||||||
|
|
||||||
### zzzz_ciss_crypt_squash.hook.binary values --------------------------------------------------------------------------------
|
|
||||||
declare ROOTFS="${VAR_HANDLER_BUILD_DIR}/binary/live/filesystem.squashfs"
|
|
||||||
# shellcheck disable=SC2155
|
|
||||||
declare -i VAR_ROOTFS_SIZE=$(stat -c%s -- "${ROOTFS}")
|
|
||||||
declare -i OVERHEAD_FIXED=$((64 * 1024 * 1024))
|
|
||||||
declare -i OVERHEAD_PCT=1.6
|
|
||||||
declare -i ALIGN_BYTES=$(( 2048 * 1024 ))
|
|
||||||
declare -i BASE_SIZE=$(( VAR_ROOTFS_SIZE + OVERHEAD_FIXED + (VAR_ROOTFS_SIZE * OVERHEAD_PCT / 100) ))
|
|
||||||
declare -i VAR_LUKSFS_SIZE=$(( ( (BASE_SIZE + ALIGN_BYTES - 1) / ALIGN_BYTES ) * ALIGN_BYTES ))
|
|
||||||
### zzzz_ciss_crypt_squash.hook.binary values --------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# shellcheck disable=SC2164
|
# shellcheck disable=SC2164
|
||||||
cd "${VAR_HANDLER_BUILD_DIR}"
|
cd "${VAR_HANDLER_BUILD_DIR}"
|
||||||
|
|
||||||
@@ -66,10 +55,6 @@ run_analysis() {
|
|||||||
declare package_count=$(wc -l < "${VAR_PACKAGES_FILE}" 2> /dev/null || echo "nicht gefunden")
|
declare package_count=$(wc -l < "${VAR_PACKAGES_FILE}" 2> /dev/null || echo "nicht gefunden")
|
||||||
# shellcheck disable=SC2155
|
# shellcheck disable=SC2155
|
||||||
declare squash_cpu_used="$(grep -m1 -oP 'Using \K[0-9]+' "${VAR_BUILD_LOG}")"
|
declare squash_cpu_used="$(grep -m1 -oP 'Using \K[0-9]+' "${VAR_BUILD_LOG}")"
|
||||||
# shellcheck disable=SC2153,SC2155
|
|
||||||
declare var_rootfs_size="$(awk -v b="${VAR_ROOTFS_SIZE}" 'BEGIN { printf "%.2f", b/1024/1024/1024 }')"
|
|
||||||
# shellcheck disable=SC2153,SC2155
|
|
||||||
declare var_luksfs_size="$(awk -v b="${VAR_LUKSFS_SIZE}" 'BEGIN { printf "%.2f", b/1024/1024/1024 }')"
|
|
||||||
|
|
||||||
if [[ -f "${VAR_BUILD_LOG}" ]]; then
|
if [[ -f "${VAR_BUILD_LOG}" ]]; then
|
||||||
|
|
||||||
@@ -113,8 +98,6 @@ run_analysis() {
|
|||||||
printf "\e[92m🧾 === Build summary === \e[0m\n"
|
printf "\e[92m🧾 === Build summary === \e[0m\n"
|
||||||
printf "\e[92m----------------------------------------------------------------------------------------\e[0m\n"
|
printf "\e[92m----------------------------------------------------------------------------------------\e[0m\n"
|
||||||
printf "\e[97m📦 ISO-File : %s \e[0m\n" "${iso_file}"
|
printf "\e[97m📦 ISO-File : %s \e[0m\n" "${iso_file}"
|
||||||
printf "\e[97m💾 RootFS-Size : %s \e[0m\n" "${var_rootfs_size}"
|
|
||||||
printf "\e[97m🔐 LUKSFS-Size : %s \e[0m\n" "${var_luksfs_size}"
|
|
||||||
printf "\e[97m📀 ISO-Size : %s \e[0m\n" "${iso_size_hr}"
|
printf "\e[97m📀 ISO-Size : %s \e[0m\n" "${iso_size_hr}"
|
||||||
printf "\e[97m📂 Chroot-Size : %s \e[0m\n" "${chroot_size_hr}"
|
printf "\e[97m📂 Chroot-Size : %s \e[0m\n" "${chroot_size_hr}"
|
||||||
printf "\e[97m📉 Compression-level : %s \e[0m\n" "${compression}"
|
printf "\e[97m📉 Compression-level : %s \e[0m\n" "${compression}"
|
||||||
|
|||||||
Reference in New Issue
Block a user