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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-02 20:29:02 +02:00
parent 8e5e7a6515
commit d1ee062b43
2 changed files with 11 additions and 7 deletions

View File

@@ -60,13 +60,17 @@ update_grub_bootparameter() {
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//$/\\$}"
### 2) Wrap the value in single quotes, so the dollar signs survive GRUB parsing.
var_nuke_string="nuke='${var_nuke_esc}'"
#var_nuke_string="nuke='${var_nuke_esc}'"
### 3) Append to accumulating cmdline variable. Space-prefix ensures clean concatenation.
VV_GRUB_CMDLINE_LINUX+=" ${var_nuke_string}"
var_nuke_string="nuke=${VAR_NUKE_HASH}"
# shellcheck disable=SC2034
VV_GRUB_CMDLINE_LINUX="${VV_GRUB_CMDLINE_LINUX} ${var_nuke_string}"
fi
grub_finalize_string