V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 45s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 45s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -29,13 +29,16 @@ guard_sourcing
|
||||
#######################################
|
||||
partition_formatting() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
# shellcheck disable=SC2034
|
||||
declare -Ag HMP_PATH_FSUUID # Used in: 3290() - [Mount Path:Filesystem UUID].
|
||||
# Used in: 4040() - [Mount Path:Filesystem UUID].
|
||||
# Used in: 4060() - [Mount Path:Filesystem UUID].
|
||||
declare var_dev="" var_dev_part="" \
|
||||
var_encryption_enable="" var_encryption_label="" var_format_path="" var_fs_btrfs_checksum="" var_fs_btrfs_compress="" \
|
||||
var_fs_btrfs_mdup="" var_fs_label="" var_fs_options="" var_fs_version="" var_node="" var_fs_uuid=""
|
||||
declare var_dev="" var_dev_part="" \
|
||||
var_encryption_enable="" var_encryption_label="" var_format_path="" var_fs_btrfs_checksum="" \
|
||||
var_fs_btrfs_compress="" var_fs_btrfs_mdup="" var_fs_label="" var_fs_options="" var_fs_version="" \
|
||||
var_node="" var_fs_uuid=""
|
||||
|
||||
declare -a ary_opts=() ary_fmt_opts=()
|
||||
declare -a ary_opts=() ary_fmt_opts=()
|
||||
|
||||
for var_format_path in "${ARY_FORMT_MOUNT_PATHS[@]}"; do
|
||||
|
||||
@@ -85,7 +88,8 @@ partition_formatting() {
|
||||
btrfs filesystem show "${var_node}" >> "${DIR_LOG}/btrfs.log"
|
||||
|
||||
var_fs_uuid=$(blkid -s UUID -o value "${var_node}")
|
||||
### Gathering information for '/etc/fstab'-generation in 4040().
|
||||
### Gathering information for '/etc/fstab'-generation in 4040() and '/etc/crypttab'-generation in 4060().
|
||||
# shellcheck disable=SC2034
|
||||
HMP_PATH_FSUUID["${var_format_path}"]="${var_fs_uuid}"
|
||||
;;
|
||||
|
||||
@@ -101,7 +105,8 @@ partition_formatting() {
|
||||
tune2fs -l "${var_node}" >> "${DIR_LOG}/ext4.log"
|
||||
|
||||
var_fs_uuid=$(blkid -s UUID -o value "${var_node}")
|
||||
### Gathering information for '/etc/fstab'-generation in 4040().
|
||||
### Gathering information for '/etc/fstab'-generation in 4040() and '/etc/crypttab'-generation in 4060().
|
||||
# shellcheck disable=SC2034
|
||||
HMP_PATH_FSUUID["${var_format_path}"]="${var_fs_uuid}"
|
||||
;;
|
||||
|
||||
@@ -112,7 +117,8 @@ partition_formatting() {
|
||||
do_log "info" "file_only" "3240() Partition: '${var_node}' formatted: 'FAT32'."
|
||||
|
||||
var_fs_uuid=$(blkid -s UUID -o value "${var_node}")
|
||||
### Gathering information for '/etc/fstab'-generation in 4040().
|
||||
### Gathering information for '/etc/fstab'-generation in 4040() and '/etc/crypttab'-generation in 4060().
|
||||
# shellcheck disable=SC2034
|
||||
HMP_PATH_FSUUID["${var_format_path}"]="${var_fs_uuid}"
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user