V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m28s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m28s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -12,17 +12,15 @@
|
|||||||
|
|
||||||
guard_sourcing
|
guard_sourcing
|
||||||
|
|
||||||
###########################################################################################
|
#######################################
|
||||||
# Function to prepare the filesystem to mount each partition on the respective path.
|
# Function to prepare the filesystem to mount each partition on the respective path.
|
||||||
# Globals:
|
# Globals:
|
||||||
# MAP_MOUNTPATH_DEV
|
# HMP_MOUNTPATH_DEV
|
||||||
# MODULE_ERR
|
# VAR_RECIPE_STRING
|
||||||
# MODULE_TXT
|
# VAR_SETUP_PART
|
||||||
# RECIPE_DEV_PARTITIONS
|
|
||||||
# RECIPE_STRING
|
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# None
|
# None
|
||||||
###########################################################################################
|
#######################################
|
||||||
setup_filesystem() {
|
setup_filesystem() {
|
||||||
### Declare Arrays and Variables.
|
### Declare Arrays and Variables.
|
||||||
declare -Ag HMP_MOUNTPATH_DEV
|
declare -Ag HMP_MOUNTPATH_DEV
|
||||||
@@ -48,17 +46,17 @@ setup_filesystem() {
|
|||||||
|
|
||||||
### Encrypted partition
|
### Encrypted partition
|
||||||
HMP_MOUNTPATH_DEV["${var_mount_path}"]="/dev/mapper/${var_encryption_label}"
|
HMP_MOUNTPATH_DEV["${var_mount_path}"]="/dev/mapper/${var_encryption_label}"
|
||||||
do_log "info" "false" "Saved in HashMap MAP_MOUNTPATH_DEV: '${MOUNT_PATH}' -> '${HMP_MOUNTPATH_DEV["${MOUNT_PATH}"]}'"
|
do_log "info" "false" "Saved in HashMap MAP_MOUNTPATH_DEV: '${var_mount_path}' -> '${HMP_MOUNTPATH_DEV["${var_mount_path}"]}'"
|
||||||
|
|
||||||
elif [[ ${ENCRYPTION_ENABLE,,} == "false" && ${MOUNT_PATH} != "SWAP" && ${MOUNT_PATH} != "/tmp" ]]; then
|
elif [[ "${var_encryption_enable,,}" == "false" && "${var_mount_path}" != "SWAP" && "${var_mount_path}" != "/tmp" ]]; then
|
||||||
|
|
||||||
# Unencrypted partition
|
### Unencrypted partition
|
||||||
HMP_MOUNTPATH_DEV["${MOUNT_PATH}"]="/dev/${DEV}${PARTITION}"
|
HMP_MOUNTPATH_DEV["${var_mount_path}"]="/dev/${var_dev}${var_part}"
|
||||||
do_log "info" "false" "Saved in HashMap MAP_MOUNTPATH_DEV: '${MOUNT_PATH}' -> '${HMP_MOUNTPATH_DEV["${MOUNT_PATH}"]}'"
|
do_log "info" "false" "Saved in HashMap MAP_MOUNTPATH_DEV: '${var_mount_path}' -> '${HMP_MOUNTPATH_DEV["${var_mount_path}"]}'"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
do_log "error" "false" "Invalid value for encryption_enable: '${ENCRYPTION_ENABLE}', should be either true or false."
|
do_log "error" "false" "Invalid value for encryption_enable: '${var_encryption_enable}', should be either true or false."
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -66,7 +64,7 @@ setup_filesystem() {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user