V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -45,6 +45,18 @@ partition_formatting() {
|
||||
var_fs_version=$(yq e ".recipe.${VAR_RECIPE_STRING}.dev.${var_dev}.${var_part}.filesystem.version" "${VAR_SETUP_PART}")
|
||||
var_mount_path=$(yq e ".recipe.${VAR_RECIPE_STRING}.dev.${var_dev}.${var_part}.mount.path" "${VAR_SETUP_PART}")
|
||||
|
||||
if [[ "${var_encryption_enable,,}" == "true" && "${var_mount_path}" == "SWAP" ]]; then
|
||||
|
||||
mkfs.ext4 -L "${var_fs_label}" "/dev/${var_dev}${var_part}" 1M
|
||||
do_log "info" "false" "Partition: '/dev/${var_dev}${var_part}' formatted: '${var_fs_version}'."
|
||||
|
||||
elif [[ "${var_encryption_enable,,}" == "true" && "${var_mount_path}" == "/tmp" ]]; then
|
||||
|
||||
mkfs.ext4 -L "${var_fs_label}" "/dev/${var_dev}${var_part}" 1M
|
||||
do_log "info" "false" "Partition: '/dev/${var_dev}${var_part}' formatted: '${var_fs_version}'."
|
||||
|
||||
fi
|
||||
|
||||
### Formatting partition
|
||||
if [[ "${var_encryption_enable,,}" == "true" && "${var_mount_path}" != "SWAP" && "${var_mount_path}" != "/tmp" ]]; then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user