Menu ▾ ▴

#28 Limine boot menu: theme, versioned kernel entries, snapshot rollback

open
nobody
None
2026-11-16
2026-11-16
Anonymous
No

Originally created by: idiazraz

Makes the Limine menu on installed systems themed and structured, with bootable snapshots and a rollback path. CachyOS's limine-entry-tool / limine-snapper-sync are AUR-only, so this extends our own kriss-limine-update instead (idea credited in pkgs/kriss-settings/SOURCES.md).

Menu

KrissOS
  linux-kriss 7.3.4            (default; "(fallback)" entry when that initramfs exists)
  linux-kriss-generic 7.3.4
  Snapshots                    15 newest: "2026-11-16 10:22 pacman -Syu [pre] (#2)"
Windows                        (dual-boot, unchanged)
  • Theme (kriss-theme 0.4.0): dark KrissOS wallpaper rendered to a 235 KB PNG and copied to the ESP, translucent panel, margins, accent branding and palette from tokens.json.
  • Sync: pacman hook (kernel/initcpio/Limine), new mkinitcpio post hook, existing /.snapshots path unit. Does nothing while a snapshot is booted (that root's kernels aren't the ones in /boot; before, a rewrite there could mislabel entries and delete kept kernels).
  • Snapshots: the initramfs hook now prints that it is booting a read-only snapshot and comments out fstab's / line in the RAM layer; a login notification (kriss rollback --notice) says changes are lost at reboot.
  • kriss rollback (kriss-tools 0.6.0): from a booted snapshot, makes it @ again, keeps the old system as @.old-DATE (prints the delete command), copies its kernel back from /boot/kriss/, rewrites the menu.
  • Secure Boot: once sbctl has keys, every path gets a BLAKE2b hash, the config hash is enrolled with limine enroll-config, and Limine is signed. Previously the script re-copied an unsigned BOOTX64.EFI on every snapshot change.

Verified

  • Arch container: generated menu (ordering, versions, fallback, kept-kernel snapshot, missing-kernel snapshot dropped, XML unescape, Windows), /boot/kriss cleanup, Secure Boot path (limine enroll-config + sbctl sign on real Limine 12.10 binaries).
  • Arch container, loop btrfs: kriss rollback swaps subvolumes, restores a writable @, copies the old kernel, refuses outside a snapshot.
  • shellcheck on all changed scripts.
  • CI install test (pending): checks the generated limine.conf, boots the default entry, then boots the snapshot entry through an SMBIOS-supplied copy of the generated config, with screenshots.

Not verified

  • Secure Boot on real firmware (installer still doesn't enrol keys).
  • kriss rollback inside a full VM boot (only on a loop btrfs).

Related

Tickets: #30
Tickets: #32

Discussion


Log in to post a comment.