Use realpath to obtain partition number

This commit is contained in:
oddlama 2021-06-03 20:43:36 +02:00
parent 47ffc8a551
commit 55b12b4fc6
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,8 @@ function install_kernel_efi() {
local efipartdev local efipartdev
efipartdev="$(resolve_device_by_id "$DISK_ID_EFI")" \ efipartdev="$(resolve_device_by_id "$DISK_ID_EFI")" \
|| die "Could not resolve device with id=$DISK_ID_EFI" || die "Could not resolve device with id=$DISK_ID_EFI"
efipartdev="$(realpath "$efipartdev")" \
|| die "Error in realpath '$efipartdev'"
local efipartnum="${efipartdev: -1}" local efipartnum="${efipartdev: -1}"
local gptdev local gptdev
gptdev="$(resolve_device_by_id "${DISK_ID_PART_TO_GPT_ID[$DISK_ID_EFI]}")" \ gptdev="$(resolve_device_by_id "${DISK_ID_PART_TO_GPT_ID[$DISK_ID_EFI]}")" \