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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-08 16:31:29 +01:00
parent 1ea2537892
commit 77b2b7420a
3 changed files with 94 additions and 8 deletions

View File

@@ -15,7 +15,9 @@ guard_sourcing
#######################################
# Deploy all changes made using the 'update-grub' and 'update-initramfs' commands.
# Globals:
# TARGET
# VAR_CHROOT_SYS_MASK_ENTER
# VAR_CHROOT_SYS_MASK_LEAVE
# VAR_KERNEL
# Arguments:
# None
# Returns:
@@ -35,9 +37,25 @@ update_initramfs() {
"
chroot_script "${TARGET}" "
depmod -a ${var_kernel}
### Write the two helpers verbatim (no host-side expansion).
cat >/tmp/.ciss_sysmask_enter.sh <<'EOS_ENTER'
${VAR_CHROOT_SYS_MASK_ENTER}
EOS_ENTER
cat >/tmp/.ciss_sysmask_leave.sh <<'EOS_LEAVE'
${VAR_CHROOT_SYS_MASK_LEAVE}
EOS_LEAVE
### run: mask sys, build, unmask.
bash -e /tmp/.ciss_sysmask_enter.sh
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
"
chroot_script "${TARGET}" "