Repository navigation
Boot in 1 second, quietly, with a way back to the menu - #15301
Conversation
|
| trap 'rm -rf "$test_dir"' EXIT | ||
| stub_bin="$test_dir/bin" | ||
| mkdir -p "$stub_bin" | ||
| printf '#!/bin/bash\n[[ ${1:-} == -v ]] && exit 0\nexec "$@"\n' >"$stub_bin/sudo" |
There was a problem hiding this comment.
Denied authentication lacks a test
The new sudo stub always accepts -v, so these tests never check that a denied password prompt leaves the migration pending. Add a case that rejects sudo -v and checks that the migration fails without changing the file. Also check through omarchy-migrate that no completion marker is written. This would catch a later change that silently marks the migration done after authentication fails.
|
Greptile addressed in the latest commit:
|
|
Greptile round 2 addressed: the denied-sudo case is skipped as root (root ignores the chmod 000 staging); it runs unprivileged, which is the case the migration faces. |
Limine's 5-second menu wait is most of the loader time at boot. The template now ships timeout: 1 with quiet: yes (any key still shows the menu), a migration applies the same to existing installs only where no uncommented timeout of the user's own exists (quiet is added wherever missing, and reruns change nothing), and System gains Reboot to Boot Menu via omarchy-system reboot-boot-menu, which asks systemd for the boot loader menu for 30 seconds through the usual graceful session exit.
The ESP is often mounted umask=0077, so the unprivileged existence check missed limine.conf and let the migration complete without applying anything.
Authenticate before treating an unreadable boot menu as a missing one: the ESP is often mounted umask=0077, and a cancelled prompt must not mark the migration complete without applying it.
Prepending by reading the menu into its own overwrite raced the writer against the reader; insert the line with sed instead, and cover the no-timeout-line case.
Greptile: with a user timeout kept, the message still claimed a 1-second wait. Report the timeout and quiet changes separately. Also cover a denied sudo prompt: it must fail the migration, leaving it pending, without touching the menu.
Greptile: root ignores the chmod 000 staging, so the denied-prompt case falsely fails there. Skip it under root; it runs for the unprivileged runs the migration actually faces.
481b20e to
35e9fd7
Compare
What
Most of the 6.2s loader time at boot is Limine's menu wait.
default/limine/limine.conf:timeout: 1+quiet: yes(silent boot; any key shows the menu).migrations/1791898365.sh: applies the same to existing installs only where no uncommentedtimeout:exists — a timeout the user set (any case, includingTIMEOUT: no) stays;quietis added wherever missing; reruns change nothing. Authentication failure leaves the migration pending rather than marking it done.omarchy system reboot-boot-menu(System > Reboot to Boot Menu):systemctl reboot --boot-loader-menu=0through the usual graceful session exit. Deviation from the plan's--boot-loader-menu=30: withquiet: yes, a 30-second one-shot counts down hidden (per Limine's config docs, quiet suppresses the menu during a timeout), while 0 disables automatic boot, where "the menu is shown regardless" — which is what this item is for.Verification
limine-defaults-test.sh, newlimine-quiet-boot-migration-test.sh(stock / user timeout / uppercase / no-timeout-line / already-done / no-menu cases, idempotent),system-power-test.sh(action reachessystemctl reboot --boot-loader-menu=0 --no-wallthrough the worker),menu-test.sh: pass.From plans/overnight-quality.md §2 (Boot).