V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m36s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m36s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -16,16 +16,20 @@ guard_sourcing
|
||||
# Function to format the respective partition on each device according to the recipe string chosen.
|
||||
# Globals:
|
||||
# DIR_LOG
|
||||
# HMP_PATH_FSUUID
|
||||
# VAR_RECIPE_STRING
|
||||
# VAR_SETUP_PART
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# 0: Successful
|
||||
#######################################
|
||||
partition_formatting() {
|
||||
### Declare Arrays and Variables.
|
||||
declare -Ag HMP_PATH_FSUUID
|
||||
declare var_dev var_part \
|
||||
var_encryption_enable var_encryption_label var_fs_btrfs_checksum var_fs_btrfs_compress var_fs_btrfs_dedup \
|
||||
var_fs_format var_fs_label var_fs_options var_fs_version var_mount_path var_node
|
||||
var_fs_format var_fs_label var_fs_options var_fs_version var_mount_path var_node var_fs_uuid
|
||||
declare -a ary_devs ary_parts ary_opts ary_fmt_opts
|
||||
|
||||
### Iterate over all devices in the recipe.
|
||||
@@ -74,6 +78,8 @@ partition_formatting() {
|
||||
do_log "info" "false" "Partition: '${var_node}' formatted: btrfs."
|
||||
echo "Partition: '${var_node}':" >> "${DIR_LOG}/btrfs.log"
|
||||
btrfs filesystem show "${var_node}" >> "${DIR_LOG}/btrfs.log"
|
||||
var_fs_uuid=$(blkid -s UUID -o value "${var_node}")
|
||||
HMP_PATH_FSUUID["UUID_${var_mount_path}"]="${var_fs_uuid}"
|
||||
;;
|
||||
|
||||
ext4)
|
||||
|
||||
Reference in New Issue
Block a user