Use realpath to obtain partition number
This commit is contained in:
parent
47ffc8a551
commit
55b12b4fc6
|
@ -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]}")" \
|
||||||
|
|
Loading…
Reference in New Issue