V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m17s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m17s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -187,7 +187,7 @@ mount_partition() {
|
||||
declare var_mount_path="" var_dev_part="" var_dev="" var_btrfs_options="" \
|
||||
var_encryption_label="" var_fs_btrfs_compress="" var_fs_btrfs_level="" var_fs_btrfs_snapshot="" \
|
||||
var_fs_btrfs_subvolume="" var_fs_version="" var_mount_options="" var_mount_optsnap="" var_mount_path="" \
|
||||
var_snapshot="" var_fs_uuid=""
|
||||
var_snapshot="" var_fs_uuid="" var_partuuid=""
|
||||
|
||||
declare -a ary_cmd=() ary_cmd_mount=()
|
||||
|
||||
@@ -213,6 +213,7 @@ mount_partition() {
|
||||
fi
|
||||
|
||||
var_fs_uuid="${HMP_PATH_FSUUID["${var_mount_path}"]}"
|
||||
var_partuuid="${HMP_PATH_PARTUUID["${var_mount_path}"]}"
|
||||
|
||||
if [[ -z "${var_fs_uuid}" ]]; then
|
||||
do_log "error" "file_only" "3280() FS-UUID for mount path: '${var_mount_path}' not found in: 'HMP_PATH_FSUUID'."
|
||||
@@ -222,9 +223,14 @@ mount_partition() {
|
||||
### Mounting of Ephemeral 'SWAP' and '/tmp' as per https://wiki.archlinux.org/title/Dm-crypt/Swap_encryption#UUID_and_LABEL
|
||||
if [[ "${var_mount_path,,}" == "swap" ]]; then
|
||||
|
||||
cryptsetup open --type plain --key-file /dev/random \
|
||||
--offset 2048 --cipher aes-xts-plain64 --key-size 512 \
|
||||
--sector-size 4096 "/dev/disk/by-uuid/${var_fs_uuid}" "${var_encryption_label}"
|
||||
#cryptsetup open --type plain --key-file /dev/random \
|
||||
# --offset 2048 --cipher aes-xts-plain64 --key-size 512 \
|
||||
# --sector-size 4096 "/dev/disk/by-uuid/${var_fs_uuid}" "${var_encryption_label}"
|
||||
|
||||
cryptsetup open --type plain --hash=plain \
|
||||
--key-file /dev/random --keyfile-size 256 \
|
||||
--cipher aes-xts-plain64 --key-size 512 \
|
||||
"/dev/disk/by-partuuid/${var_partuuid}" "${var_encryption_label}"
|
||||
|
||||
mkswap "/dev/mapper/${var_encryption_label}"
|
||||
do_log "debug" "file_only" "3280() [mkswap /dev/mapper/${var_encryption_label}]."
|
||||
@@ -239,9 +245,14 @@ mount_partition() {
|
||||
|
||||
elif [[ "${var_mount_path,,}" == "/tmp" ]]; then
|
||||
|
||||
cryptsetup open --type plain --key-file /dev/random \
|
||||
--offset 2048 --cipher aes-xts-plain64 --key-size 512 \
|
||||
--sector-size 4096 "/dev/disk/by-uuid/${var_fs_uuid}" "${var_encryption_label}"
|
||||
#cryptsetup open --type plain --key-file /dev/random \
|
||||
# --offset 2048 --cipher aes-xts-plain64 --key-size 512 \
|
||||
# --sector-size 4096 "/dev/disk/by-uuid/${var_fs_uuid}" "${var_encryption_label}"
|
||||
|
||||
cryptsetup open --type plain --hash=plain \
|
||||
--key-file /dev/random --keyfile-size 256 \
|
||||
--cipher aes-xts-plain64 --key-size 512 \
|
||||
"/dev/disk/by-partuuid/${var_partuuid}" "${var_encryption_label}"
|
||||
|
||||
mkdir -p "${TARGET}/tmp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user