mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
EFI boot enhancements
This commit is contained in:
parent
9c5a27f209
commit
dcb6bf45b5
2 changed files with 11 additions and 5 deletions
|
@ -78,13 +78,13 @@ If you already have a working *GRUB2* EFI configuration file, you do not need to
|
||||||
Otherwise, create the configuration file using the `grub2-mkconfig` command.
|
Otherwise, create the configuration file using the `grub2-mkconfig` command.
|
||||||
|
|
||||||
----
|
----
|
||||||
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
# grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
----
|
----
|
||||||
|
|
||||||
.More information
|
.More information
|
||||||
|
|
||||||
* Under EFI, *GRUB2* looks for its configuration in `/boot/efi/EFI/fedora/grub.cfg`.
|
* Under EFI, *GRUB2* looks for its configuration in `/boot/efi/EFI/fedora/grub.cfg`, however the postinstall script of `grub2-common` installs a small shim which chains to the standard configuration at `/boot/grub2/grub.cfg` which is generated above. To reset this shim to defaults, delete the existing `/boot/efi/EFI/fedora/grub.cfg` and then `dnf reinstall grub2-common`.
|
||||||
* For newly installed kernels to work, `grubby` expects `/etc/grub2-efi.cfg` to be a symlink to the real grub.cfg (for example `/boot/efi/EFI/fedora/grub.cfg`).
|
* For newly installed kernels to work, `grubby` expects `/etc/grub2-efi.cfg` to be a symlink to the real `grub.cfg` (for example `/boot/grub2/grub.cfg`).
|
||||||
|
|
||||||
|
|
||||||
[[solving-problems-with-uefi-bootloader]]
|
[[solving-problems-with-uefi-bootloader]]
|
||||||
|
|
|
@ -47,7 +47,7 @@ mount /dev/mapper/fedora-root /mnt/root
|
||||||
----
|
----
|
||||||
|
|
||||||
. Mount the boot partition in the `boot` directory of the filesystem that you have mounted in the previous step.
|
. Mount the boot partition in the `boot` directory of the filesystem that you have mounted in the previous step.
|
||||||
|
+
|
||||||
----
|
----
|
||||||
mount /dev/sda1 /mnt/root/boot/
|
mount /dev/sda1 /mnt/root/boot/
|
||||||
----
|
----
|
||||||
|
@ -61,9 +61,15 @@ mount -o bind /sys /mnt/root/sys
|
||||||
mount -o bind /run /mnt/root/run
|
mount -o bind /run /mnt/root/run
|
||||||
----
|
----
|
||||||
|
|
||||||
|
. If you use EFI boot, you may also want to bind the efivars and the EFI system partition:
|
||||||
|
+
|
||||||
|
----
|
||||||
|
mount -o bind /sys/firmware/efi/efivars /mnt/root/sys/firmware/efi/efivars
|
||||||
|
mount <efi system partition> /mnt/root/boot/efi
|
||||||
|
----
|
||||||
|
|
||||||
. Change your filesystem into the one mounted under `/mnt/root`.
|
. Change your filesystem into the one mounted under `/mnt/root`.
|
||||||
+
|
+
|
||||||
|
|
||||||
----
|
----
|
||||||
chroot /mnt/root
|
chroot /mnt/root
|
||||||
----
|
----
|
||||||
|
|
Loading…
Reference in a new issue