V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 58s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 58s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -30,15 +30,13 @@ nuke_passphrase() {
|
||||
|
||||
# shellcheck disable=SC2312
|
||||
var_nuke_rounds="$(
|
||||
yq -o=json "${DIR_CNF}/preseed.yaml" \
|
||||
| jq -r '
|
||||
.. # recursive descent
|
||||
| objects # only JSON objects (= YAML maps)
|
||||
| to_entries[] # iterate key/value pairs
|
||||
| select(.key | test("_nuke_rounds$"))
|
||||
| .value
|
||||
' \
|
||||
| head -n1
|
||||
yq -r '
|
||||
.. # recursive descent over all nodes
|
||||
| select(tag == "!!map") # keep only mapping nodes
|
||||
| to_entries[] # iterate key/value pairs
|
||||
| select(.key | test("_nuke_rounds$")) # match key suffix
|
||||
| .value # output the value
|
||||
' "${DIR_CNF}/partitioning.yaml" | head -n1
|
||||
)"
|
||||
|
||||
do_log "debug" "file_only" "0105() var_nuke_rounds: ${var_nuke_rounds}"
|
||||
|
||||
Reference in New Issue
Block a user