mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
Use /boot/loader/entries as BLS dir also on EFI systems
For EFI systems, the BLS fragments were stored in the EFI System Partition (ESP) while in non-EFI systems it was stored in /boot. For consistency, it's better to always store the BLS fragments in the same path regardless of the firmware interface used. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
db5dccf332
commit
91f9e5a07c
1 changed files with 0 additions and 5 deletions
|
@ -19,12 +19,7 @@ MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID
|
||||||
# Remove it, since for grub2 the images are always installed in /boot
|
# Remove it, since for grub2 the images are always installed in /boot
|
||||||
rm -rf "${BOOT_DIR_ABS%/*}"
|
rm -rf "${BOOT_DIR_ABS%/*}"
|
||||||
|
|
||||||
EFIDIR="$(echo "${ID}" | sed -e 's/rhel/redhat/')"
|
|
||||||
|
|
||||||
BLS_DIR="/boot/loader/entries"
|
BLS_DIR="/boot/loader/entries"
|
||||||
if [ -d /sys/firmware/efi ]; then
|
|
||||||
BLS_DIR="/boot/efi/EFI/${EFIDIR}/loader/entries"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkbls() {
|
mkbls() {
|
||||||
local kernelver=$1 && shift
|
local kernelver=$1 && shift
|
||||||
|
|
Loading…
Reference in a new issue