Skip to content

Bootloader

The bootloader is the first program that runs when the computer starts: it loads the Linux kernel and the initramfs. Core Linux offers two, and the installer uses Limine by default.

Limine (default) GRUB
Configuration /boot/limine.conf /boot/grub/grub.cfg (generated)
How to edit Plain text file, by hand Edit /etc/default/grub and run grub-mkconfig

Core Linux is installed with Calamares, an open-source graphical installer. We use a version adapted for the project, whose code lives on Codeberg. During installation you can choose Limine (default) or GRUB as the bootloader, and the installer sets up its configuration for you (/boot/limine.conf in the case of Limine).

Limine is a modern, lightweight bootloader with a very simple configuration. Official Arch Linux documentation: Limine on the ArchWiki.

You need administrator privileges to view it, because /boot is only readable by root:

Ventana de terminal
sudo cat /boot/limine.conf

The installer creates this file with the general part of the menu: timeout, name and colors (Tokyo Night palette), and remembering the last chosen entry. It looks like this (abridged):

timeout: 5
default_entry: 2
interface_branding: Core Bootloader
interface_branding_color: 9ece6a
hash_mismatch_panic: no
remember_last_entry: yes
term_background: 1a1b26
backdrop: 1a1b26
term_foreground: c0caf5
# ... color palette Tokyo Night ...
comment: machine-id=XXXXXXXX
  • timeout: seconds before the default entry boots.
  • default_entry: the entry selected by default.
  • interface_branding and term_*: the menu’s name and colors.
  • remember_last_entry: remembers the last entry you chose.
  • A line starting with / is a menu entry; with // it is a sub-entry inside another one.

If the installer detects other systems (for example Windows), it appends an Other systems and bootloaders group with one sub-entry per system, started through chainloading.

The entries for Core Linux and its snapshots are maintained by the Limine tools, not written by hand. Kernel parameters and menu order live in /etc/default/limine:

Ventana de terminal
sudo cat /etc/default/limine

There, KERNEL_CMDLINE sets the kernel parameters and BOOT_ORDER the order of the entries (normal kernel, lts, fallback and Snapshots). If you change something, regenerate the entries with sudo limine-mkinitcpio.

More details in the Limine configuration documentation.

GRUB is the classic bootloader, highly compatible and feature-rich. Documentation: GRUB on the ArchWiki.

Its grub.cfg is not edited by hand: change the settings in /etc/default/grub and regenerate it with:

Ventana de terminal
sudo grub-mkconfig -o /boot/grub/grub.cfg

If the system uses Btrfs with snapshots and an update or a change leaves it unstable, you can boot an earlier version from a snapshot:

  1. Reboot and open the bootloader menu.
  2. Choose the snapshots entry and select the most recent one that worked.
  3. Boot and check that everything is fine before restoring that state.

With GRUB, snapshots appear in a submenu through grub-btrfs. With Limine, snapshots are shown in the Snapshots group of the menu.

More information: Snapper on the ArchWiki.