Skip to content

omarchy pacstrap VM never boots: limine renders /Omarchy as an empty branch, so check-omarchy-pacstrap-vm hangs at deploy-add #501

Closed

Description

@atrawog

The omarchy pacstrap VM's guest never boots: limine renders the entry as an empty branch, so check-omarchy-pacstrap-vm hangs at [deploy-add] forever waiting for SSH that can never arrive.

What happens

charly check run check-omarchy-pacstrap-vm on a stock charly (no local replaces, carrying charly#498):

[vm-build]  PASS after 4m41.845s [warnings=11 allowlisted=4]
[vm-create] PASS after 1.949s [allowlisted=1]
[deploy-add] START ...                       <- never returns; 40+ minutes observed

The disk builds cleanly and the domain starts. The guest then sits at the Limine menu and never boots a kernel. From the guest's serial console (charly vm console omarchy-pacstrap-vm --domain check-omarchy-pacstrap-vm --dump):

BdsDxe: loading Boot0002 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)
BdsDxe: starting Boot0002 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)
Limine 12.6.0 (x86-64, UEFI)   [+] Omarchy   ARROWS Select  ENTER Expand  S Firmware Setup  B Blank Entry

Two things in that line are the whole diagnosis:

  • [+] Omarchy with ENTER Expand — limine is rendering the entry as a COLLAPSED BRANCH, not a bootable leaf. A bootable entry shows ENTER Boot.
  • B Blank Entry — limine offers to construct a blank entry, which it does when it has nothing bootable to offer.

timeout: 3 fires and there is no bootable default to fall through to, so it stays on the menu indefinitely. The serial log is 4220 bytes and contains no kernel output at all — the kernel is never started, which is why SSH never comes up and [deploy-add] cannot ever succeed.

Where it comes from

charly/charly.yml, the omarchy distro entity's bootloader install_template (around line 957):

cat > {{.Mnt}}/boot/limine.conf <<LIMINECONF
timeout: 3
default_entry: 1

/Omarchy
    protocol: linux
    kernel_path: boot():/vmlinuz-linux
    cmdline: root=PARTUUID=${ROOT_PARTUUID} rootflags=subvol=@ rw rootfstype=btrfs zswap.enabled=0{{if .KernelArgs}} {{.KernelArgs}}{{end}}
    module_path: boot():/initramfs-linux.img
LIMINECONF

Unchanged since charly#476 (git log -S'/Omarchy' -- charly/charly.yml returns only that commit), so this is not a regression from any recent change — it is how the entity has always been.

Why it was not caught earlier

[vm-build] used to FAIL for an unrelated reason: limine's alpm hook cannot succeed inside a pacstrap chroot, and the bed's errors-fatal log gate rejected the run (fixed in opencharly/plugin-check#11, merged). The bed therefore never reached [vm-create], and the built disk was never booted by CI or by a bed. This run is the first time the disk actually got booted after that gate stopped firing.

Not yet established

I have NOT read the rendered /boot/limine.conf off the built disk, so I cannot say from evidence whether the fault is the config content (e.g. the property lines not being parsed as belonging to /Omarchy, leaving an entry with no kernel_path) or the paths it names (e.g. boot():/vmlinuz-linux not resolving to where pacstrap put the kernel). Both are consistent with an entry that limine shows but cannot boot.

The decisive next measurement is to mount the built qcow2's ESP and read the file, and compare it against the limine.conf an ISO-installed guest carries — that guest boots correctly, so the difference between the two is the answer.

Impact

check-omarchy-pacstrap-vm cannot pass. Its charly.yml claims it is the "sole proof that charly's own from-packages path produces a BOOTABLE Omarchy", and that claim is currently false — the from-packages path produces a disk that does not boot.

This also blocks the conversion of that bed's assertions to typed check verbs, which was deliberately withdrawn from opencharly/distro-omarchy#8 pending exactly this bed being runnable.

Assisted-by: Claude Code claude-opus-4-6-20260401 (analysed on a live system)

Activity

  1. atrawog commented on Aug 31, 2026

    @atrawog
    ContributorAuthor

    Fixed, not deferred — the RCA is complete and the fix is in fix/omarchy-limine-bootable.

    Mechanism (read off both ESPs with qemu-img dd + mtools, no root needed):

    charly's template wrote a depth-1 leaf /Omarchy. limine-entry-tool — pulled in as a hard dependency of the omarchy metapackage via limine-mkinitcpio-hook, and running as an alpm hook DURING the pacstrap transaction — appended its UKI entry as //linux, a depth-2 sub-entry. That nested the tool's entry under charly's, converting charly's bootable leaf into a branch. limine renders a branch as [+] Omarchy … ENTER Expand, default_entry: 1 selected the branch, and nothing was bootable.

    Confirmed by reading the WORKING config off an ISO-installed guest's ESP:

    default_entry: 2
    /+Omarchy          <- '+' = EXPANDED branch
      //linux          <- the bootable entry, at position 2
    

    Two bugs: no + (collapsed branch) and default_entry: 1 (selects the branch, not a kernel).

    Fix: mirror Omarchy's own structure — /+Omarchy with //Charly as a sub-entry and default_entry: 2. The tool's //linux then lands as a SIBLING at position 3; both stay bootable.

    Proof: [deploy-add] went from hanging 40+ minutes to PASS after 16.26s; the serial log went from 4 KB stuck at the menu to 46 KB of a booted systemd; [check-live] is 6/6 including omarchy-pacstrap-limine-cmdline, which asserts the running kernel carries limine's own cmdline and could never have passed before.

    Correcting the issue's own 'not yet established' section: the ESP was never missing files — my first extract was 40 MiB against a 511 MiB partition, which made EFI/ look empty. The kernel, initramfs, BOOTX64.EFI and the UKI were all present throughout; the fault was purely the config structure.

  2. added a commit that references this issue on Aug 31, 2026
    41a8038
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions