Release Notes for Alpine 3.20.0: Difference between revisions

From Alpine Linux
No edit summary
(Remove stray " (thanks shinobi5747485))
Line 23: Line 23:


{{Cmd|
{{Cmd|
  # grub-install --target{{=}}<var>$target</var> --efi-directory{{=}}"<var>$efi_directory</var>" \
  # grub-install --target{{=}}<var>$target</var> --efi-directory{{=}}<var>$efi_directory</var> \
     --bootloader-id{{=}}alpine --boot-directory{{=}}"/boot --no-nvram
     --bootloader-id{{=}}alpine --boot-directory{{=}}/boot --no-nvram
  # install -D <var>$efi_directory</var>/EFI/alpine/grub<var>$fwa</var>.efi <var>$efi_directory</var>/EFI/boot/boot<var>$fwa</var>.efi
  # install -D <var>$efi_directory</var>/EFI/alpine/grub<var>$fwa</var>.efi <var>$efi_directory</var>/EFI/boot/boot<var>$fwa</var>.efi



Revision as of 10:26, 7 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