Repository navigation
Boot systemd-boot installs from a pre-built initramfs - #529
Merged
Merged
Conversation
The root image now carries the initramfs omarchy-boot-switch install would build on the target, next to Limine's pre-built UKI: the image's own mkinitcpio configuration (the busybox hooks with encrypt and Omarchy's snapshot-overlay and restore hooks) for its kernel, generic the way the UKI is, without autodetect and kms. It measures about 50 MiB. build-root-image.sh records its kernel, version, MODULES lines, keymap and a hash of every file it is built from. finalize_systemd_boot passes it as --initramfs to omarchy-boot-switch install when the target's omarchy-boot-switch takes the option, the image's kernel is installed as built, and none of the pre-built UKI's fall-backs apply: no added initramfs modules, the image's keymap, no provisioning key, no aarch64 board with a platform of its own. Anything else a hardware script changed in the initramfs configuration, module options or initcpio hooks builds on the machine too. That saves the 4 s of mkinitcpio that made systemd-boot installs slower than Limine's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups: the input hash already catches added modules and the provisioning key, so their separate checks and the modules record go (the modules check also defeated the kernel-modules drop-in's ignore). A shared ESP builds the smaller machine image, the image skips the file when its omarchy-boot-rebuild can't take it, and the file is deleted once the boot is set up instead of staying in @ and the factory snapshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[High impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds a pre-built initramfs for compatible systemd-boot installs to skip building it on the target.
No actionable issues were found. No runtime tests were run.
|
Install test passed
Boots are loader, kernel and userspace, without the VM's firmware. Install phases, x86_64
Install phases, aarch64
|
emirb
added a commit
that referenced
this pull request
Nov 26, 2026
Brings in the hardware layers (#530), the library read before the first pacman transaction (#531), systemd-boot installs (#489, #529) and the setup form's XKB layouts (#528). Two conflicts. In builder/build-root-image.sh both steps stay: the hardware layers first, which write into the image tree, then the Try layer against the finished image. In phases_impl.py the hardware layer paths join the squashfs ROOT_IMAGE and its mount paths.
outfoxxed
added a commit
that referenced
this pull request
Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit reworded. The pre-built initramfs has no GPU drivers, and on an image with the boot splash no keyboard layout but US, so a password typed at install in a non-Latin layout could not be typed at the first boot's prompt. systemd-boot installs build their own on the machine again. _recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its record with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed
added a commit
that referenced
this pull request
Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit reworded. The pre-built initramfs has no GPU drivers, and on an image with the boot splash no keyboard layout but US, so a password typed at install in a non-Latin layout could not be typed at the first boot's prompt. systemd-boot installs build their own on the machine again. _recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its record with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed
added a commit
that referenced
this pull request
Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit reworded. The pre-built initramfs has no GPU drivers, and on an image with the boot splash no keyboard layout but US, so a password typed at install in a non-Latin layout could not be typed at the first boot's prompt. systemd-boot installs build their own on the machine again. _recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its record with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed
added a commit
that referenced
this pull request
Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit reworded. The pre-built initramfs has no GPU drivers, and on an image with the boot splash no keyboard layout but US, so a password typed at install in a non-Latin layout could not be typed at the first boot's prompt. systemd-boot installs build their own on the machine again. _recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its record with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed
added a commit
that referenced
this pull request
Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit reworded, and removes the parallel build of its initramfs that 61c8412 added. The pre-built initramfs has no GPU drivers, and on an image with the boot splash no keyboard layout but US, so a password typed at install in a non-Latin layout could not be typed at the first boot's prompt. systemd-boot installs build their own on the machine again. _recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its record with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dhh
pushed a commit
that referenced
this pull request
Nov 28, 2026
* Install with greetd's login screen and Omarchy's boot splash configure_login points greetd's login screen at the install's user through the target's omarchy-system-login, with autologin on an encrypted install, in place of SDDM's state and autologin files. An image whose settings package carries the omarchy-splash hook gets no pre-built UKI: its systemd initramfs runs Plymouth, so every install builds the busybox initramfs the splash runs in, and shows the splash from its first boot. Nor does such an image ship omarchy-boot-systemd: the splash is untested with systemd-boot, so a build that would ship them together fails. prebuilt-uki-test.sh runs the pre-built UKI builds, in turn and in parallel, with and without the splash. Comments, docs and tests name the login screen and the splash where they named SDDM and Plymouth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Log Try in with greetd and Omarchy's login screen The Try layer enables greetd and has omarchy-system-login log its user in at boot. After a logout the login screen asks for the user's empty password, and Enter logs back in. SDDM's Relogin goes, with the passwordless theme and the session wrapper that kept it working, and so does the udev settle drop-in: omarchy-system-wait-drm runs before greetd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Revert "Boot systemd-boot installs from a pre-built initramfs (#529)" This reverts commit 2f7cabf, keeping the layers comment a later commit reworded, and removes the parallel build of its initramfs that 61c8412 added. The pre-built initramfs has no GPU drivers, and on an image with the boot splash no keyboard layout but US, so a password typed at install in a non-Latin layout could not be typed at the first boot's prompt. systemd-boot installs build their own on the machine again. _recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its record with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings systemd-boot installs back to Limine's install speed. On real hardware a systemd-boot install took 9.6 s against about 4.6 s on Limine:
mkinitcpioon the target is 4.0 s of it. The Limine path avoids that with the image's pre-built UKI, but that one has a systemd-hook initramfs without Omarchy's snapshot and restore hooks, so systemd-boot can't use it.build-root-image.sh): builds a pre-built initramfs with the image's own busybox hook set (encrypt,omarchy-snapshot-overlay,omarchy-restore), generic like the UKI (no autodetect, no kms), and records its kernel, keymap and a hash of every file it is built from. An image whoseomarchy-boot-rebuildcan't take it carries none.finalize_systemd_boot): passes it toomarchy-boot-switch install --initramfs(omacom/omarchy companion PR) unless the machine needs its own build: a different kernel build, a keyboard layout other than the image's, an aarch64 board with its own platform, a shared ESP (the generic image is about twice the machine's), or any change to the files it is built from (hardware modules such as NVIDIA's, the provisioning key, hibernation's resume hook, modprobe options).@and the factory snapshot.The image grows by about 70 MB. Integration results and install timings in QEMU follow in a comment.
🤖 Generated with Claude Code