Fix partitioning root UUID bug in /etc/crypttab.

This commit is contained in:
user 2024-11-05 10:26:39 +07:00 committed by Igor
parent cc704f49a6
commit 817519210b

View File

@ -300,7 +300,7 @@ function prepare_partitions() {
wait_for_disk_sync "after mkfs" # force writes to be really flushed
# store in readonly global for usage in later hooks
root_part_uuid="$(blkid -s UUID -o value ${rootdevice})"
root_part_uuid="$(blkid -s UUID -o value ${LOOP}p${rootpart})"
declare -g -r ROOT_PART_UUID="${root_part_uuid}"
display_alert "Mounting rootfs" "$rootdevice (UUID=${ROOT_PART_UUID})"