V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m28s
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:
@@ -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}" "
|
||||
|
||||
Reference in New Issue
Block a user