Firmware, bootloader and initramfs
Quick answer
Booting Linux is a sequence of handoffs: firmware selects a boot path, a loader or firmware loads the kernel, early userspace prepares the real root filesystem, and the init system takes over.
Prepare the practice environment
Run python3 lab-fixtures/boot-services/setup.py from the extracted package root as an ordinary user in a disposable Linux environment. Enter the printed path and check pwd. Use a fresh fixture and a fresh Bash process for each offline example, with LC_ALL=C and set -o pipefail. Do not omit the explicit offline root. Read the fixture README before VM-only examples; never run those on the host. Static checks do not start a service.
How it works
BIOS and UEFI are firmware interfaces, not Linux init systems. GRUB is a common bootloader, not a requirement; UEFI can also load a suitable kernel directly. The kernel initializes hardware and unpacks initramfs (an early root filesystem archive). Its early userspace can discover storage, load modules and unlock encrypted volumes before switching to the real root. Not every system needs an external initramfs. PID 1 in the final userspace starts or coordinates services. Containers normally share the host kernel and do not perform a full firmware boot. A missing /boot file in a container does not imply a broken host boot.
Think of the handoffs as a chain: if early userspace cannot find the root device, the normal service manager may never start. If a service fails after login becomes available, the failure is later in the chain. Start with the earliest evidence available on the authorized VM console; uname -s only confirms the running kernel family, not which loader or root-discovery steps succeeded.
Try the examples
This is a teaching diagram stored as text, not an observed boot log.
Expected stdout:
firmwareloaderkernelearly userspaceinitThis identifies the kernel, not the bootloader.
Expected stdout:
Linuxif test -d /sys/firmware/efi; then printf 'EFI interface visible\n'; else printf 'EFI interface not visible\n'; filsblk -o NAME,TYPE,FSTYPE,MOUNTPOINTSOn a full VM, compare with the firmware setting. A missing EFI directory alone is not proof of BIOS in a container. Do not mount or write disks.
Manual example; not executed locally. Follow its stated environment restrictions.
Common mistakes
Do not regenerate GRUB configuration, rebuild initramfs or reboot simply to inspect boot stages. These are distribution-specific maintenance tasks requiring recovery access.
Practice
Draw the boot stages and mark where storage discovery and service startup belong. In a disposable VM, compare the kernel release and the firmware configuration without changing either.
Related references
Study: lsblk. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Firmware, bootloader and initramfs — Knowledge Check
Apply boot and systemd concepts to offline unit files and VM-only scenarios.
Which stage commonly prepares the real root filesystem?
Is GRUB required on every Linux system?
What does uname -s identify?
What should you do before changing boot configuration?