name: boot-engineering
description: Linux boot chain and firmware specialist skill for UEFI, bootloaders (systemd-boot, GRUB), initramfs engineering (mkinitcpio, dracut), Unified Kernel Images (UKI), and early userspace recovery. Covers efibootmgr NVRAM variable configuration, EFI System Partition (ESP) layout, early boot storage and encryption assembly (LUKS, LVM), microcode updates, Secure Boot signing (sbctl), and diagnosing missing root UUID boot failures. Use when configuring bootloaders, diagnosing early boot freezes, fixing initramfs hooks, or analyzing boot chains.
license: Apache-2.0
compatibility: Requires Linux environment with UEFI userspace tooling (efibootmgr, mkinitcpio).
metadata:
author: Eshan Roy
version: "0.1.0"
claude_context: "fork"
claude_agent: "general"
Linux Boot Engineering
The boot-engineering skill provides specialist capabilities for analyzing and configuring the Linux boot chain: UEFI firmware, NVRAM variables, bootloaders (systemd-boot, GRUB), initramfs early userspace generators (mkinitcpio), Unified Kernel Images (UKI), and emergency recovery.
1. Operating Principles & Safety Invariants
- Preserve Fallback Bootability: Never overwrite or delete a working bootloader configuration without ensuring a verified fallback entry (
initramfs-linux-fallback.img) exists.
- Never Mix Initramfs Hook Architectures: Never combine
systemd / sd-* hooks with udev / legacy hooks in mkinitcpio.conf.
- Microcode Precedence Invariant: CPU microcode (
intel-ucode.img or amd-ucode.img) must always be loaded as the first initrd image in the bootloader.
- Safety Tier Gating: Writing NVRAM boot variables (
efibootmgr), regenerating production initramfs images (mkinitcpio -P), and enrolling Secure Boot keys are Tier 3 operations requiring explicit human authorization.
2. Intent Classification & Workflow Routing
flowchart TD
REQ["Boot Engineering Request"] --> CLASS{"Classify Boot Task"}
CLASS -->|Boot Failure / Emergency Shell| DIAG["1. Boot Diagnostics\n(Missing root UUID, missing storage driver, initramfs shell)"]
CLASS -->|Bootloader Configuration| LOADER["2. Bootloader Engineering\n(systemd-boot, GRUB 2, loader.conf, microcode ordering)"]
CLASS -->|Initramfs Generation| INITRD["3. Initramfs Engineering\n(mkinitcpio.conf hooks, systemd vs busybox, modules)"]
CLASS -->|UEFI / Secure Boot| UEFI["4. Firmware & UKI Engineering\n(efibootmgr, Unified Kernel Images, sbctl, TPM2)"]
DIAG --> EXEC["Execute Boot Workflow"]
LOADER --> EXEC
INITRD --> EXEC
UEFI --> EXEC
3. The 5-Step Boot Failure Diagnostic Workflow
- Identify Failure Stage: Determine whether failure occurs in Firmware (no bootloader), Bootloader (file missing), Early Kernel (freeze), or Initramfs (drop to rootfs shell).
- Verify Block Device Identifiers: Query
blkid to match actual filesystem UUIDs against kernel command line root=UUID=....
- Audit Initramfs Hooks: Check
/etc/mkinitcpio.conf for missing storage (block), crypto (sd-encrypt/encrypt), or LVM (sd-lvm2/lvm2) hooks.
- Inspect Microcode Ordering: Verify that
intel-ucode.img or amd-ucode.img precedes the main initramfs in bootloader entries.
- Formulate Safe Rollback: Provide non-destructive recovery commands via
arch-chroot or fallback boot entries.
4. Cross-Specialist Coordination
| Task |
Coordinating Specialists |
Interaction |
| Encrypted root volume boot |
boot-engineering + linux-storage |
linux-storage sets up LUKS/Btrfs; boot-engineering configures sd-encrypt and cmdline. |
| Early kernel boot crash |
boot-engineering + kernel-engineering |
boot-engineering isolates cmdline/microcode; kernel-engineering decodes kernel panic trace. |
5. Authoritative References Directory
- UEFI Firmware & ESP Management
- Bootloaders (systemd-boot & GRUB)
- Linux Boot Sequence
- Initramfs & mkinitcpio Engineering
- Unified Kernel Images & Secure Boot
- Boot Diagnostics & Troubleshooting
- Safety Policy
1---2name: boot-engineering3description: Linux boot chain and firmware specialist skill for UEFI, bootloaders (systemd-boot, GRUB), initramfs engineering (mkinitcpio, dracut), Unified Kernel Images (UK4---5---6name: boot-engineering7description: Linux boot chain and firmware specialist skill for UEFI, bootloaders (systemd-boot, GRUB), initramfs engineering (mkinitcpio, dracut), Unified Kernel Images (UKI), and early userspace recovery. Covers efibootmgr NVRAM variable configuration, EFI System Partition (ESP) layout, early boot storage and encryption assembly (LUKS, LVM), microcode updates, Secure Boot signing (sbctl), and diagnosing missing root UUID boot failures. Use when configuring bootloaders, diagnosing early boot freezes, fixing initramfs hooks, or analyzing boot chains.8license: Apache-2.09compatibility: Requires Linux environment with UEFI userspace tooling (efibootmgr, mkinitcpio).10metadata:11 author: Eshan Roy12 version: "0.1.0"13 claude_context: "fork"14 claude_agent: "general"15---1617# Linux Boot Engineering1819The `boot-engineering` skill provides specialist capabilities for analyzing and configuring the Linux boot chain: UEFI firmware, NVRAM variables, bootloaders (systemd-boot, GRUB), initramfs early userspace generators (`mkinitcpio`), Unified Kernel Images (UKI), and emergency recovery.2021---2223## 1. Operating Principles & Safety Invariants24251. **Preserve Fallback Bootability**: Never overwrite or delete a working bootloader configuration without ensuring a verified fallback entry (`initramfs-linux-fallback.img`) exists.262. **Never Mix Initramfs Hook Architectures**: Never combine `systemd` / `sd-*` hooks with `udev` / legacy hooks in `mkinitcpio.conf`.273. **Microcode Precedence Invariant**: CPU microcode (`intel-ucode.img` or `amd-ucode.img`) must always be loaded as the first `initrd` image in the bootloader.284. **Safety Tier Gating**: Writing NVRAM boot variables (`efibootmgr`), regenerating production initramfs images (`mkinitcpio -P`), and enrolling Secure Boot keys are Tier 3 operations requiring explicit human authorization.2930---3132## 2. Intent Classification & Workflow Routing3334```mermaid35flowchart TD36 REQ["Boot Engineering Request"] --> CLASS{"Classify Boot Task"}3738 CLASS -->|Boot Failure / Emergency Shell| DIAG["1. Boot Diagnostics\n(Missing root UUID, missing storage driver, initramfs shell)"]39 CLASS -->|Bootloader Configuration| LOADER["2. Bootloader Engineering\n(systemd-boot, GRUB 2, loader.conf, microcode ordering)"]40 CLASS -->|Initramfs Generation| INITRD["3. Initramfs Engineering\n(mkinitcpio.conf hooks, systemd vs busybox, modules)"]41 CLASS -->|UEFI / Secure Boot| UEFI["4. Firmware & UKI Engineering\n(efibootmgr, Unified Kernel Images, sbctl, TPM2)"]4243 DIAG --> EXEC["Execute Boot Workflow"]44 LOADER --> EXEC45 INITRD --> EXEC46 UEFI --> EXEC47```4849---5051## 3. The 5-Step Boot Failure Diagnostic Workflow52531. **Identify Failure Stage**: Determine whether failure occurs in Firmware (no bootloader), Bootloader (file missing), Early Kernel (freeze), or Initramfs (drop to rootfs shell).542. **Verify Block Device Identifiers**: Query `blkid` to match actual filesystem UUIDs against kernel command line `root=UUID=...`.553. **Audit Initramfs Hooks**: Check `/etc/mkinitcpio.conf` for missing storage (`block`), crypto (`sd-encrypt`/`encrypt`), or LVM (`sd-lvm2`/`lvm2`) hooks.564. **Inspect Microcode Ordering**: Verify that `intel-ucode.img` or `amd-ucode.img` precedes the main initramfs in bootloader entries.575. **Formulate Safe Rollback**: Provide non-destructive recovery commands via `arch-chroot` or fallback boot entries.5859---6061## 4. Cross-Specialist Coordination6263| Task | Coordinating Specialists | Interaction |64|:---|:---|:---|65| Encrypted root volume boot | `boot-engineering` + `linux-storage` | `linux-storage` sets up LUKS/Btrfs; `boot-engineering` configures `sd-encrypt` and cmdline. |66| Early kernel boot crash | `boot-engineering` + `kernel-engineering` | `boot-engineering` isolates cmdline/microcode; `kernel-engineering` decodes kernel panic trace. |6768---6970## 5. Authoritative References Directory7172- [UEFI Firmware & ESP Management](references/firmware-uefi.md)73- [Bootloaders (systemd-boot & GRUB)](references/bootloaders.md)74- [Linux Boot Sequence](references/linux-boot-process.md)75- [Initramfs & mkinitcpio Engineering](references/initramfs.md)76- [Unified Kernel Images & Secure Boot](references/unified-kernel-images.md)77- [Boot Diagnostics & Troubleshooting](references/boot-debugging.md)78- [Safety Policy](../../references/safety-policy.md)