Repository navigation
Drop the N1x rescue boot entry - #18913
Conversation
The fallback UKI behind it is built with every module and took about a minute on every install and kernel update. Release firmware boots the GPU, and snapshots cover recovery. Existing N1x machines lose the drop-in and rebuild, which removes the fallback UKI and its menu entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The boot-menu change is limited to N1x machines. The migration should confirm that the rebuild finished before this PR merges. Findings
SummaryRemoves the N1x rescue boot entry and its extra image build.
Reviews (2) · Last reviewed commit: "Merge branch 'quattro' into drop-n1x-fal..." · Reviewed by Greptile |
| [[ -f $conf ]] || exit 0 | ||
|
|
||
| sudo rm -f "$conf" | ||
| sudo limine-mkinitcpio |
There was a problem hiding this comment.
Interrupted removal never finishes
If the migration stops after deleting $conf but before the rebuild finishes, the next run exits successfully because $conf is gone. omarchy-migrate then marks it complete without retrying the rebuild, so the rescue image and menu entry can remain. This violates the migration requirement that unfinished work must remain pending. Keep a durable pending marker before deleting the config, and clear it only after confirming the rebuild finished.
File Used: agents/skills/migrations.md (source)
There was a problem hiding this comment.
Fixed in dd4e3df: the migration writes a pending marker before deleting the drop-in and removes it only after limine-mkinitcpio succeeds, so an interrupted rebuild exits non-zero and the next run finishes it. Dry-run with the rebuild stubbed to fail, then succeed, then run again: pending, done, no-op.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Omarchy drops the N1x fallback UKI that served as the rescue entry (omacom/omarchy#18913): its every-module initramfs took about a minute on every install and kernel update, and release firmware boots the GPU. Boot validation still checks every N1x kernel entry for console=tty0 and acpi=nospcr, but no longer fails an install without the rescue entry. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Stop requiring the N1x rescue entry Omarchy drops the N1x fallback UKI that served as the rescue entry (omacom/omarchy#18913): its every-module initramfs took about a minute on every install and kernel update, and release firmware boots the GPU. Boot validation still checks every N1x kernel entry for console=tty0 and acpi=nospcr, but no longer fails an install without the rescue entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pre-build an N1x UKI in the aarch64 image Every N1x built its UKI at install, about 20s: its hardware setup adds the NVIDIA stack and the I2C keyboard to the initramfs, so the generic pre-built UKI never fit. The aarch64 image now carries a second one built with those modules, read from the image's own n1x.sh, and the installer copies it on an N1x whose module lines match exactly. The NVIDIA packages go into a throwaway overlay at build time, never into the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Stop requiring the N1x rescue entry Omarchy drops the N1x fallback UKI that served as the rescue entry (omacom/omarchy#18913): its every-module initramfs took about a minute on every install and kernel update, and release firmware boots the GPU. Boot validation still checks every N1x kernel entry for console=tty0 and acpi=nospcr, but no longer fails an install without the rescue entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pre-build an N1x UKI in the aarch64 image Every N1x built its UKI at install, about 20s: its hardware setup adds the NVIDIA stack and the I2C keyboard to the initramfs, so the generic pre-built UKI never fit. The aarch64 image now carries a second one built with those modules, read from the image's own n1x.sh, and the installer copies it on an N1x whose module lines match exactly. The NVIDIA packages go into a throwaway overlay at build time, never into the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Install the N1x's NVIDIA stack from a layer packed at build time An N1x pacstrapped linux-omarchy-nvidia-open, nvidia-utils and the rest of its package list at install: 22.6s, about 16s of it depmod and ldconfig reading the freshly written disk cold. The overlay that pre-builds the N1x UKI now installs that whole list, runs depmod, ldconfig and sysusers, and packs what it added as omarchy-layer.aarch64-n1x.tar.zst next to the root image, listed in the image's sha256 file so the boot-time verify covers it. The installer extracts it right after the image write; the platform delta then finds nothing missing. The image itself stays generic, and an ISO without the layer installs as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Name the platform's package set in the log when the layer installed it all The N1x install test checks the log for the set the installer took; with the layer, no STEP.platform_packages line names it any more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit bbd6ac20832e3248ecf51de0d827915830f2cc56) * Watch the platform layer's read like the image's The image's sums file lists the N1x layer too, but the wait only knew the image and the mirror: a stick hanging mid-layer sat out the size-based timeout, which did not count the layer either. Track the layer's offset for the stall check, count its bytes in the progress, and size the timeout over the image and its layers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What changes
N1x laptops got a text-console rescue entry right below the normal one: a fallback UKI built with every module (no
autodetect), NVIDIA blacklisted,nomodeset, booting tomulti-user.target. It dates from N1x bring-up, when pre-release firmware couldn't boot the GPU. Release firmware boots it, and Btrfs snapshots cover recovery, so it's no longer needed.It was expensive: building that fallback image takes about 53s on an N1x (142 MB), against 19s for the normal one, and it ran on every install and every kernel update. On this machine's install log, "Finalizing boot and user" took 37s of a 57s install, most of it these two builds.
install/hardware/n1x.shno longer writeszz-omarchy-n1x-boot-order.conf(MKINITCPIO_FALLBACK, the rescue cmdline, itsBOOT_ORDERand snapshot exclusion). The defaultBOOT_ORDERfromomarchy-defaults.confapplies.1794673542removes that drop-in on existing N1x machines and runslimine-mkinitcpio, which deletes the fallback UKI and its menu entry when no fallback is configured (limine-mkinitcpio-install,remove_uki_if_present).Verification
hardware-quirks-test.sh,hw-n1x-test.sh,image-target-platform-test.shand./test/clipass.mkinitcpioon an N1x (Dell): 19.0s default, 53.1s with-S autodetect.Screenshots
No visible change on the desktop: the boot menu loses the N1x "linux-omarchy-fallback" entry.
🤖 Generated with Claude Code