<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ironswordx</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ironswordx"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Ironswordx"/>
	<updated>2026-05-03T23:25:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Bootloaders&amp;diff=32154</id>
		<title>Bootloaders</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Bootloaders&amp;diff=32154"/>
		<updated>2026-03-18T17:32:38Z</updated>

		<summary type="html">&lt;p&gt;Ironswordx: Add the normal 32-bit EFI file name.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;bootloader&#039;&#039; is a computer program that is responsible for booting a computer. In the case where it also provides an interactive menu with multiple boot choices, then it&#039;s often called a &#039;&#039;boot manager&#039;&#039;. This page shows the basic steps that you need to perform if, for any reason, you want to switch bootloaders or to apply some manual configuration.&lt;br /&gt;
&lt;br /&gt;
The following bootloaders are available in Alpine Linux:-&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#Syslinux|Syslinux]]&amp;lt;/code&amp;gt; is the default lightweight bootloader used in Alpine Linux when booting the Alpine Installer ISO.  It is also the bootloader when creating a Live USB/CD/ISOLinux/PXELinux.  Supports the Filesystems: FAT12/16/32&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#Extlinux|Extlinux]]&amp;lt;/code&amp;gt; is the default lightweight bootloader used in Alpine Linux when Installing the Alpine OS to Disk via BIOS/Legacy Boot.  Supports the Filesystems: EXT2/3/4, BTRFS, XFS&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#GRUB|GRUB]]&amp;lt;/code&amp;gt; is a standard Linux bootloader used in Alpine Linux when Installing the Alpine OS to Disk via UEFI.&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#Limine|Limine]]&amp;lt;/code&amp;gt; is a modern, advanced, portable, multiprotocol bootloader and boot manager.&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#EFI_Boot_Stub|EFI Boot Stub]]&amp;lt;/code&amp;gt; allows for booting Linux directly from a motherboard supporting &#039;&#039;UEFI&#039;&#039; or from another bootloader.&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#rEFInd|rEFInd]]&amp;lt;/code&amp;gt; is an easy-to-use &#039;&#039;EFI&#039;&#039; boot menu that allows booting different operating systems.&amp;lt;br&amp;gt;&lt;br /&gt;
* [[UEFI Secure Boot]] uses {{pkg|systemd-efistub}} or {{pkg|stubbyboot-efistub}}.&lt;br /&gt;
&lt;br /&gt;
A [[#Using a UKI|Unified Kernel Image (UKI)]] is additionally supported, available  for UEFI only. It is a UEFI executable that can be useful in [https://uapi-group.org/specifications/specs/unified_kernel_image/ certain use cases], including secure boot, clouds and containers.&lt;br /&gt;
&lt;br /&gt;
Note that {{pkg|gummiboot}} is a &#039;&#039;deprecated&#039;&#039; UEFI boot manager that was originally able to leverage UEFI firmware and detect bootable images such as Linux kernels that have an EFI stub on the EFI System Partition (ESP).  The [https://cgit.freedesktop.org/gummiboot/ gummiboot project] was discontinued in 2015 and renamed as {{Pkg|systemd-boot}} for systemd systems and is only available in Alpine Linux in the [[Repositories#Testing|testing repository]].  As it had no runtime dependencies, &#039;&#039;&#039;gummiboot&#039;&#039;&#039; was appreciated for its simplicity as a lightweight, minimal UEFI boot solution.  Its UEFI stub, {{pkg|gummiboot-efistub}}, was used [[UEFI_Secure_Boot#Generating_Unified_Kernel_Image|to generate a Unified Kernel Images (UKIs)]] e.g. for [[DM-verity]] and Secure Boot, but [[Release_Notes_for_Alpine_3.22.0#Secure_Boot_and_Gummiboot|it has been deprecated since Alpine Linux 3.22]] and is no longer maintained;  it has been replaced by &#039;&#039;&#039;systemd-efistub&#039;&#039;&#039; (note that the latter package [[UEFI_Secure_Boot#Generating_Unified_Kernel_Image|only supplies EFI stub binaries]] and doesn’t depend on any systemd components).&lt;br /&gt;
&lt;br /&gt;
== Syslinux ==&lt;br /&gt;
&lt;br /&gt;
If you want to switch from another bootloader back to &#039;&#039;Syslinux&#039;&#039;, or if for some reason you want to install Syslinux manually, then the following steps are required.&lt;br /&gt;
&lt;br /&gt;
Install the {{pkg|syslinux}} package:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add syslinux}}&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using GPT partitions, then install the &#039;&#039;GPT MBR&#039;&#039; onto the drive that you want to install the bootloader on (in this case, {{path|/dev/sda}}):&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/gptmbr.bin of=/dev/sda&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Or, if you&#039;re using DOS partitions, then install the &#039;&#039;DOS MBR&#039;&#039; instead:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of=/dev/sda&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!-- See also: http://www.syslinux.org/wiki/index.php?title=Mbr --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, install the required Syslinux binaries. Despite being called &amp;lt;code&amp;gt;extlinux&amp;lt;/code&amp;gt;, Syslinux supports booting from FAT12/16/32, NTFS, ext2/3/4, [[Btrfs|btrfs]], XFS and UFS/FFS filesystems.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# syslinux --install /boot}}&lt;br /&gt;
&lt;br /&gt;
The configuration file is located in {{path|/boot/syslinux/syslinux.cfg}}. &lt;br /&gt;
&lt;br /&gt;
Alpine Linux ships with a script, &amp;lt;code&amp;gt;update-extlinux&amp;lt;/code&amp;gt;, that automatically (re)generates this file, for example, on updates to Syslinux. The settings for this script can be found in {{path|/etc/update-extlinux.conf}}, including the option to disable automatic overwriting of {{path|/boot/extlinux.conf}}. &lt;br /&gt;
&lt;br /&gt;
You can also edit and add additional menu entries in the bootloader configuration file for dual booting multiple os&#039;s: {{path|/boot/syslinux/syslinux.cfg}}&lt;br /&gt;
&lt;br /&gt;
=== Using EFI with syslinux ===&lt;br /&gt;
&lt;br /&gt;
The Alpine Linux installer automatically uses [[#GRUB|GRUB]] if EFI mode is detected. The section below is specifically about using EFI with Syslinux.&lt;br /&gt;
&lt;br /&gt;
Assuming that {{path|/mnt}} is a FAT32 partition of type EF00 and that {{path|/boot}} belongs to the rootfs created after running &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/EFI/syslinux&lt;br /&gt;
# cp /usr/share/syslinux/efi64/* /mnt/EFI/syslinux/&lt;br /&gt;
# cp /boot/extlinux.conf /mnt/EFI/syslinux/syslinux.cfg&lt;br /&gt;
# cp /boot/vmlinuz* /mnt/EFI/syslinux/&lt;br /&gt;
# cp /boot/initramfs* /mnt/EFI/syslinux/&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
You may need to modify {{path|/mnt/EFI/syslinux/syslinux.cfg}} to change the paths to absolute paths (just add a / in front of the vmlinuz/initramfs entries), or copy the files to {{path|/mnt/EFI/syslinux}} instead (XXX: untested).&lt;br /&gt;
&lt;br /&gt;
In the end, the {{path|/mnt/EFI/syslinux/syslinux.cfg}} file should look like this:&lt;br /&gt;
&lt;br /&gt;
{{cat|/mnt/EFI/syslinux/syslinux.cfg|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
DEFAULT menu.c32&lt;br /&gt;
PROMPT 0&lt;br /&gt;
MENU TITLE Alpine/Linux Boot Menu&lt;br /&gt;
MENU HIDDEN&lt;br /&gt;
MENU AUTOBOOT Alpine will be booted automatically in # seconds&lt;br /&gt;
TIMEOUT 10&lt;br /&gt;
LABEL lts&lt;br /&gt;
  MENU DEFAULT&lt;br /&gt;
  MENU LABEL Linux lts&lt;br /&gt;
  LINUX /vmlinuz-lts&lt;br /&gt;
  INITRD /initrd-lts&lt;br /&gt;
  APPEND root=/dev/sda3 modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Finally, add &amp;lt;code&amp;gt;syslinux&amp;lt;/code&amp;gt; to the EFI boot menu.  Assuming that {{path|/dev/sda}} is your hard drive —&#039;&#039;&#039;&#039;&#039;be careful to check first what is its path on your device and to adjust accordingly&#039;&#039;&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# apk add efibootmgr&lt;br /&gt;
# efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\syslinux\\syslinux.efi -L &amp;quot;ALPINE-SYSLINUX&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
You can now verify that the boot entry has been added:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;efibootmgr&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BootCurrent: 0001&lt;br /&gt;
Timeout: 0 seconds&lt;br /&gt;
BootOrder: 0001,0000,0002,...&lt;br /&gt;
Boot001* ALPINE-SYSLINUX HD(1,GPT,xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)/FILE(\EFI\syslinux\syslinux.efi)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GRUB ==&lt;br /&gt;
&lt;br /&gt;
To install GRUB in BIOS mode, (optionally) remove the Syslinux package and install the required GRUB packages:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# apk del syslinux&lt;br /&gt;
# apk add grub grub-bios&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
For EFI, install GRUB&#039;s EFI package instead. Note that {{path|/boot}} has to be an EFI-compatible filesystem, such as FAT32.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add grub-efi efibootmgr}}&lt;br /&gt;
&lt;br /&gt;
Next, install the MBR and GRUB binaries to disk for BIOS mode:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# grub-install /dev/vda}}&lt;br /&gt;
&lt;br /&gt;
For EFI mode:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# grub-install --target=x86_64-efi --efi-directory=/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Then, add this line to {{path|/etc/default/grub}}:&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;# GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet rootfstype=ext4 modules=sd-mod,usb-storage,ext4&amp;quot;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
GRUB ships with an automatic configuration generator, including some automatic detection of other operating systems installed on the device:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# grub-mkconfig -o /boot/grub/grub.cfg}}&lt;br /&gt;
&lt;br /&gt;
This script can be configured via the {{path|/etc/default/grub}} file. &lt;br /&gt;
&lt;br /&gt;
If the font in the GRUB boot screen appears too small, then [[Fonts#Changing_GRUB_font_and_font_size|change the GRUB font]].&lt;br /&gt;
&lt;br /&gt;
Consult [https://www.gnu.org/software/grub/manual/html_node/Simple-configuration.html gnu.org&#039;s online manual] for a list of available &amp;lt;code&amp;gt;grub-mkconfig&amp;lt;/code&amp;gt; configuration options.&lt;br /&gt;
&lt;br /&gt;
== Limine ==&lt;br /&gt;
&lt;br /&gt;
[https://codeberg.org/Limine/Limine Limine] is a modern, advanced, portable, multiprotocol bootloader and boot manager, also used as the reference implementation for the Limine boot protocol. It supports partitioning schemes like MBR, GPT and  Unpartitioned media.&lt;br /&gt;
&lt;br /&gt;
== EFI Boot Stub ==&lt;br /&gt;
&lt;br /&gt;
To boot directly from your motherboard&#039;s UEFI boot menu, a boot entry needs to be created either with a UEFI shell or with &#039;&#039;efibootmgr&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== efibootmgr ===&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|efibootmgr}}:&lt;br /&gt;
{{cmd|# apk add efibootmgr}}&lt;br /&gt;
&lt;br /&gt;
Create a boot entry. It is recommended to do this in a script, as efibootmgr does not allow for editing entries.&lt;br /&gt;
&lt;br /&gt;
{{cat|add-bootentry|&amp;lt;nowiki&amp;gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
params=&amp;quot;root=/dev/sdXZ rootfstype=ext4 rw \&lt;br /&gt;
  initrd=\intel-ucode.img \&lt;br /&gt;
  initrd=\initramfs-lts&amp;quot;&lt;br /&gt;
&lt;br /&gt;
efibootmgr --create --label &amp;quot;Alpine Linux&amp;quot; \&lt;br /&gt;
  --disk /dev/sdX --part Y \&lt;br /&gt;
  --loader /vmlinuz-lts \&lt;br /&gt;
  --unicode &amp;quot;${params}&amp;quot; \&lt;br /&gt;
  --verbose&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Where {{path|/dev/sdXY}} contains the EFI partition and {{path|/dev/sdXZ}} contains the root partition. If you are using {{Pkg|linux-stable}}, then replace &amp;lt;code&amp;gt;lts&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;stable&amp;lt;/code&amp;gt; in the script.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If you&#039;re modifying EFI records from a running system (e. g. migrating from GRUB), you can populate {{ic|$params}} from {{ic|/proc/cmdline}}. Make sure to append {{ic|initrd}} param if it&#039;s missing since GRUB does not add it to the command line.}}&lt;br /&gt;
&lt;br /&gt;
{{Note| The kernel contains the [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/init/do_mounts.c#n254 exhaustive list] of ways to specify the block device. For a more robust boot entry, it is recommended to use a persistent name such as the PARTUUID.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Optionally, set the newly-created entry as the default:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# efibootmgr -n XXXX}}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;XXXX&amp;lt;/code&amp;gt; is the boot number of the new entry.&lt;br /&gt;
&lt;br /&gt;
{{Note| The loader and initrd file arguments are relative to the EFI partition. In a default installation, Alpine Linux places these files in {{path|/boot/}}, while EFI is mounted to {{path|/boot/efi/}}. You can either update &amp;lt;code&amp;gt;fstab&amp;lt;/code&amp;gt; to mount EFI at {{path|/boot/}}, or manually copy them to {{path|/boot/efi/}}.                                                                                           }}&lt;br /&gt;
&lt;br /&gt;
== rEFInd ==&lt;br /&gt;
{{Main|rEFInd}}&lt;br /&gt;
&lt;br /&gt;
[[rEFInd]] provides a graphical boot menu for [[UEFI]] systems.&lt;br /&gt;
== Using a UKI  ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://github.com/uapi-group/specifications/blob/main/specs/unified_kernel_image.md#unified-kernel-image-uki Unified Kernel Image]&#039;&#039;&#039; (UKI) is supported in UEFI only. It is possible to boot directly into a UKI. A UKI is a single file that contains the initfs, kernel and cmdline. &lt;br /&gt;
&lt;br /&gt;
The [[UEFI Secure Boot]] page contains the instructions for setting up an a UKI.  While this is typically done in order to &#039;&#039;SecureBoot&#039;&#039;, it is perfectly feasible to skip enrolling the custom keys and to leave SecureBoot off. &lt;br /&gt;
&lt;br /&gt;
Additionally, it is possible to install the UKI in the default fallback path used by most UEFI implementations. By installing the UKI into this path, the system will automatically boot into it if no other entries are defined. This can be automated as part of the kernel hook by adding the following to {{path|/etc/kernel-hooks.d/secureboot.conf}} :&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/kernel-hooks.d/secureboot.conf|&amp;lt;nowiki&amp;gt;# For the stable kernel, install the UKI into the default UEFI path.&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; == &amp;quot;stable&amp;quot; ]; then&lt;br /&gt;
  output_dir=&amp;quot;/efi/EFI/Boot/&amp;quot;&lt;br /&gt;
  output_name=&amp;quot;bootx64.efi&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|  {{path|bootx64.efi}} is only correct for &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; systems. {{path|bootia32.efi}} is most commonly used on &amp;lt;code&amp;gt;x86&amp;lt;/code&amp;gt; (32-bit) systems. For other architectures, the exact name will vary.}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting == &lt;br /&gt;
&lt;br /&gt;
Since bootloaders are installed only during [[System Disk Mode]], the errors related to them are documented in [[System Disk Mode#Troubleshooting|that page]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
* [[Silent boot]]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Bootloader Gentoo Wiki - Bootloaders]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Arch_boot_process#Boot_loader Archwiki - Boot loader]&lt;br /&gt;
* [https://wiki.postmarketos.org/wiki/Category:Bootloaders PostmarketOS Wiki - Bootloaders]&lt;br /&gt;
* [https://docs.u-boot.org/en/latest/develop/release_cycle.html u-boot.org docs - U-Boot Release Cycle]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Booting]]&lt;/div&gt;</summary>
		<author><name>Ironswordx</name></author>
	</entry>
</feed>