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
|
# shellcheck disable=SC2312
|
||||||
var_nuke_rounds="$(
|
var_nuke_rounds="$(
|
||||||
yq -o=json "${DIR_CNF}/preseed.yaml" \
|
yq -r '
|
||||||
| jq -r '
|
.. # recursive descent over all nodes
|
||||||
.. # recursive descent
|
| select(tag == "!!map") # keep only mapping nodes
|
||||||
| objects # only JSON objects (= YAML maps)
|
|
||||||
| to_entries[] # iterate key/value pairs
|
| to_entries[] # iterate key/value pairs
|
||||||
| select(.key | test("_nuke_rounds$"))
|
| select(.key | test("_nuke_rounds$")) # match key suffix
|
||||||
| .value
|
| .value # output the value
|
||||||
' \
|
' "${DIR_CNF}/partitioning.yaml" | head -n1
|
||||||
| head -n1
|
|
||||||
)"
|
)"
|
||||||
|
|
||||||
do_log "debug" "file_only" "0105() var_nuke_rounds: ${var_nuke_rounds}"
|
do_log "debug" "file_only" "0105() var_nuke_rounds: ${var_nuke_rounds}"
|
||||||
|
|||||||
Reference in New Issue
Block a user