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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-02 20:49:23 +02:00
parent 685ea1699b
commit cd66500f65
2 changed files with 4 additions and 12 deletions

View File

@@ -134,9 +134,9 @@ EOF
umask 0022 umask 0022
{ {
printf "GRUB_CMDLINE_LINUX='%q'\n" "${VAR_GRUB_CMDLINE_LINUX}" printf "GRUB_CMDLINE_LINUX='%s'\n" "${VAR_GRUB_CMDLINE_LINUX}"
printf "\n" printf "\n"
printf "GRUB_CMDLINE_LINUX_DEFAULT='%q'\n" "${VAR_GRUB_CMDLINE_LINUX_DEFAULT}" printf "GRUB_CMDLINE_LINUX_DEFAULT='%S'\n" "${VAR_GRUB_CMDLINE_LINUX_DEFAULT}"
printf "\n" printf "\n"
printf "# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh\n" printf "# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh\n"
} >> "${var_file}" } >> "${var_file}"

View File

@@ -59,16 +59,8 @@ update_grub_bootparameter() {
fi fi
if [[ "${VAR_NUKE}" == "true" ]]; then if [[ "${VAR_NUKE}" == "true" ]]; then
### 1) Escape every '$' so GRUB won't expand it. var_nuke_esc="${VAR_NUKE_HASH//$/\\$}"
#var_nuke_esc="${VAR_NUKE_HASH//$/\\$}" var_nuke_string="nuke=${var_nuke_esc}"
### 2) Wrap the value in single quotes, so the dollar signs survive GRUB parsing.
#var_nuke_string="nuke='${var_nuke_esc}'"
### 3) Append to accumulating cmdline variable. Space-prefix ensures clean concatenation.
var_nuke_string="nuke=${VAR_NUKE_HASH}"
# shellcheck disable=SC2034 # shellcheck disable=SC2034
VV_GRUB_CMDLINE_LINUX="${VV_GRUB_CMDLINE_LINUX} ${var_nuke_string}" VV_GRUB_CMDLINE_LINUX="${VV_GRUB_CMDLINE_LINUX} ${var_nuke_string}"
fi fi