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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-07 20:28:55 +01:00
parent 03ed9c142d
commit 875d1f8e5b
2 changed files with 11 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ readonly -f write_crypttab
# TARGET
# VAR_DROPBEAR
# Arguments:
# None
# None
# Returns:
# 0: on success
#######################################
@@ -125,17 +125,15 @@ EOF
case "${var_key,,}" in
swap)
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/urandom" "plain,cipher=aes-xts-plain64,size=512,hash=plain,keyfile-size=64,discard,swap"
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/urandom" "swap,cipher=aes-xts-plain64,size=512,discard"
;;
/tmp)
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/urandom" "plain,cipher=aes-xts-plain64,size=512,hash=plain,keyfile-size=64,discard"
chroot_script "${TARGET}" "systemctl mask tmp.mount"
do_log "info" "file_only" "4210() Executed: [systemctl mask tmp.mount]"
#chroot_script "${TARGET}" "systemctl unmask tmp.mount"
#do_log "info" "file_only" "4210() Executed: [systemctl unmask tmp.mount]"
#chroot_script "${TARGET}" "systemctl disable tmp.mount"
#do_log "info" "file_only" "4210() Executed: [systemctl disable tmp.mount]"
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/urandom" "plain,cipher=aes-xts-plain64,size=512,discard"
chroot_script "${TARGET}" "systemctl unmask tmp.mount"
do_log "info" "file_only" "4210() Executed: [systemctl unmask tmp.mount]"
chroot_script "${TARGET}" "systemctl disable tmp.mount"
do_log "info" "file_only" "4210() Executed: [systemctl disable tmp.mount]"
;;
*)