Release Notes for Alpine 3.20.0: Difference between revisions
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
; target : The relevant [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 target] for your system | ; target : The relevant [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 target] for your system | ||
; efi_directory : Either {{Path|/boot/efi}} or {{Path|/boot}} | ; efi_directory : Either {{Path|/boot/efi}} or {{Path|/boot}}. Run <code>awk '$2 ~ /boot/ && $3 ~ /fat|msdos/ { print $2 }' /proc/mounts</code> to confirm. | ||
; fwa : The respective [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 firmware architecture] for your system | ; fwa : The respective [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 firmware architecture] for your system |
Revision as of 12:19, 6 January 2024
Base System
grub 2.12
When upgrading existing installations using grub, make sure to update the installed bootloader before rebooting, otherwise your machine might not boot.
Here are some examples for various situations assuming default setups. Don't blindly copy these examples but verify what's applicable to your system.
Afterwards, run the update-grub
command to update the grub configuration:
# update-grub
BIOS
For BIOS systems (x86 or x86_64)
# grub-install --boot-directory=/boot --target=i386-pc $disk
- disk
- The block device grub has been installed to.
EFI
# grub-install --target=$target --efi-directory="$efi_directory" \ --bootloader-id=alpine --boot-directory="/boot --no-nvram # install -D $efi_directory/EFI/alpine/grub$fwa.efi $efi_directory/EFI/boot/boot$fwa.efi
- target
- The relevant target for your system
- efi_directory
- Either /boot/efi or /boot. Run
awk '$2 ~ /boot/ && $3 ~ /fat|msdos/ { print $2 }' /proc/mounts
to confirm. - fwa
- The respective firmware architecture for your system