mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
use disk and part for bootmgr
This commit is contained in:
parent
7bf402d414
commit
d858d6d6bf
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ _do_uefi_efibootmgr() {
|
||||||
for _bootnum in $(efibootmgr | grep '^Boot[0-9]' | grep -F -i "${_BOOTMGR_LABEL}" | cut -b5-8) ; do
|
for _bootnum in $(efibootmgr | grep '^Boot[0-9]' | grep -F -i "${_BOOTMGR_LABEL}" | cut -b5-8) ; do
|
||||||
efibootmgr --quiet -b "${_bootnum}" -B
|
efibootmgr --quiet -b "${_bootnum}" -B
|
||||||
done
|
done
|
||||||
_BOOTMGRDEV=/dev/"$(${_LSBLK} -no PKNAME "${_UEFISYSDEV}")"
|
_BOOTMGRDEV=$(${_LSBLK} PKNAME "${_UEFISYSDEV}")"
|
||||||
_BOOTMGRNUM=$(echo "${_UEFISYSDEV}" | sed -e "s#${_BOOTMGRDEV}##g")
|
_BOOTMGRNUM=$(echo "${_UEFISYSDEV}" | sed -e "s#${_BOOTMGRDEV}##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}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue