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:
@@ -34,6 +34,7 @@ partitioning() {
|
||||
declare -Ag HMP_PATH_PARTUUID
|
||||
declare var_dev var_part var_end_arg var_begin var_end var_fs var_boot var_pri var_uuid var_mount_path
|
||||
declare -a ary_devs ary_parts
|
||||
declare -i i=0
|
||||
|
||||
### Iterate over all devices in the recipe.
|
||||
# shellcheck disable=SC2312
|
||||
@@ -97,13 +98,19 @@ partitioning() {
|
||||
do_log "info" "file_only" "Partition: '/dev/${var_dev}${var_part}' marked as bootable."
|
||||
fi
|
||||
|
||||
### Store UUID of the partition.
|
||||
var_uuid=$(blkid -s UUID -o value "/dev/${var_dev}${var_part}")
|
||||
|
||||
### Store PARTUUID of the partition.
|
||||
udevadm settle
|
||||
for i in {1..10}; do
|
||||
var_uuid=$(blkid -s PARTUUID -o value "/dev/${var_dev}${var_part}") && [[ -n "${var_uuid}" ]] && break
|
||||
sleep 0.25
|
||||
done
|
||||
|
||||
if [[ -z "${var_uuid}" ]]; then
|
||||
do_log "fatal" "file_only" "WARNING: could not read UUID for '/dev/${var_dev}${var_part}'."
|
||||
do_log "fatal" "file_only" "WARNING: could not read PARTUUID for '/dev/${var_dev}${var_part}'."
|
||||
return "${ERR_PART_READ}"
|
||||
else
|
||||
HMP_PATH_PARTUUID["UUID_${var_mount_path}"]="${var_uuid}"
|
||||
HMP_PATH_PARTUUID["PARTUUID_${var_mount_path}"]="${var_uuid}"
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user