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 |
Our installer
Section titled “Our installer”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
Section titled “Limine”Limine is a modern, lightweight bootloader with a very simple configuration. Official Arch Linux documentation: Limine on the ArchWiki.
The configuration file
Section titled “The configuration file”You need administrator privileges to view it, because /boot is only readable by root:
sudo cat /boot/limine.confThe 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: 5default_entry: 2interface_branding: Core Bootloaderinterface_branding_color: 9ece6ahash_mismatch_panic: noremember_last_entry: yes
term_background: 1a1b26backdrop: 1a1b26term_foreground: c0caf5# ... color palette Tokyo Night ...
comment: machine-id=XXXXXXXXtimeout: seconds before the default entry boots.default_entry: the entry selected by default.interface_brandingandterm_*: 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.
Kernel entries and parameters
Section titled “Kernel entries and parameters”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:
sudo cat /etc/default/limineThere, 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:
sudo grub-mkconfig -o /boot/grub/grub.cfgBooting from a snapshot (recovery)
Section titled “Booting from a snapshot (recovery)”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:
- Reboot and open the bootloader menu.
- Choose the snapshots entry and select the most recent one that worked.
- 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.