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