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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-08 17:43:55 +01:00
parent 7475eb8c40
commit bbf4f4c39b
3 changed files with 156 additions and 73 deletions

View File

@@ -15,8 +15,7 @@ guard_sourcing
#######################################
# Deploy all changes made using the 'update-grub' and 'update-initramfs' commands.
# Globals:
# VAR_CHROOT_SYS_MASK_ENTER
# VAR_CHROOT_SYS_MASK_LEAVE
# VAR_CHROOT_SYS_MASK_HELPEr
# VAR_KERNEL
# Arguments:
# None
@@ -32,36 +31,34 @@ update_initramfs() {
chroot_logger "${TARGET}${var_logfile}"
chroot_script "${TARGET}" "
update-grub 2>&1 | tee -a ${var_logfile}
echo ExitCode: \$? >> ${var_logfile}
"
update-grub 2>&1 | tee -a ${var_logfile}
echo ExitCode: \$? >> ${var_logfile}
"
chroot_script "${TARGET}" "
### Write the two helpers verbatim (no host-side expansion).
cat >/tmp/.ciss_sysmask_enter.sh <<'EOS_ENTER'
${VAR_CHROOT_SYS_MASK_ENTER}
### Write the helper verbatim (no host-side expansion).
cat >| /tmp/.ciss_sysmask_helper.sh << 'EOS_ENTER'
${VAR_CHROOT_SYS_MASK_HELPER}
EOS_ENTER
cat >/tmp/.ciss_sysmask_leave.sh <<'EOS_LEAVE'
${VAR_CHROOT_SYS_MASK_LEAVE}
EOS_LEAVE
source /tmp/.ciss_sysmask_helper.sh
### run: mask sys, build, unmask.
bash -e /tmp/.ciss_sysmask_enter.sh
cdi_sys_mask_enter
depmod -a ${var_kernel} 2>&1 | tee -a ${var_logfile}
update-initramfs -c -v -k all 2>&1 | tee -a ${var_logfile}
echo ExitCode: \$? >> ${var_logfile}
bash -e /tmp/.ciss_sysmask_leave.sh
rm -f /tmp/.ciss_sysmask_{enter,leave}.sh
cdi_sys_mask_leave
rm -f /tmp/.ciss_sysmask_helper.sh
"
chroot_script "${TARGET}" "
update-grub 2>&1 | tee -a ${var_logfile}
echo ExitCode: \$? >> ${var_logfile}
"
update-grub 2>&1 | tee -a ${var_logfile}
echo ExitCode: \$? >> ${var_logfile}
"
guard_dir && return 0
}