fix mmcblk0 and nvme partitions too

This commit is contained in:
Tobias Powalowski 2023-01-21 22:07:28 +01:00
parent b6eb9e4f15
commit de6807f3c7

View file

@ -155,7 +155,7 @@ _do_uefi_efibootmgr() {
efibootmgr --quiet -b "${_bootnum}" -B efibootmgr --quiet -b "${_bootnum}" -B
done done
_BOOTMGRDEV=$(${_LSBLK} PKNAME "${_UEFISYSDEV}") _BOOTMGRDEV=$(${_LSBLK} PKNAME "${_UEFISYSDEV}")
_BOOTMGRNUM=$(echo "${_UEFISYSDEV}" | sed -e "s#${_BOOTMGRDEV}##g") _BOOTMGRNUM=$(echo "${_UEFISYSDEV}" | sed -e "s#${_BOOTMGRDEV}##g" | sed -e 's#p##g')
efibootmgr --quiet --create --disk "${_BOOTMGRDEV}" --part "${_BOOTMGRNUM}" --loader "${_BOOTMGR_LOADER_PATH}" --label "${_BOOTMGR_LABEL}" efibootmgr --quiet --create --disk "${_BOOTMGRDEV}" --part "${_BOOTMGRNUM}" --loader "${_BOOTMGR_LOADER_PATH}" --label "${_BOOTMGR_LABEL}"
} }