You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ISO first-boot setup: "Press Enter for a command line" starts the whole first-time setup again #258
When the Omarchy Server install fails during first boot, omarchy-server-firstboot (written by iso/target/target-setup.sh) prints the retry command and then:
read -rp " Press Enter for a command line " _
exec bash -l
bash -l is a login shell, so it reads /etc/profile, which sources /etc/profile.d/*.sh. The hook that started this script is one of them (/etc/profile.d/zz-omarchy-server-firstboot.sh):
if [ "$(tty)"= /dev/tty1 ] && [ -f /var/lib/omarchy-server/firstboot ] && [ "$(cat /var/lib/omarchy-server/firstboot)"="$USER" ];then
/usr/local/bin/omarchy-server-firstboot
fi
At that point we are still on tty1, the firstboot marker still exists (it is only removed by finish_firstboot, which runs after a successful install), and $USER is the owner. So the new "command line" immediately runs the first-time setup screen again ("You'll be asked for your password...", package install, firewall rules, the download). The person never reaches a prompt; they have to press Ctrl-C to interrupt the hook before getting a shell. The same happens for every further failure.
(The second exec bash -l, after Omarchy fails, is fine because finish_firstboot has already removed the marker by then.)
How to reproduce
Found by reading the generated scripts; I did not boot an installed system. On a freshly installed machine with no network at first boot, let the Omarchy Server install fail, then press Enter at "Press Enter for a command line".
Actual: the "Omarchy Server first-time setup" screen appears again. Expected: a shell prompt.
Suggested fix
Start the shell without the hook, for example exec env OMARCHY_SERVER_FIRSTBOOT_SKIP=1 bash -l with the profile hook testing that variable, or use a non-login exec bash.
Activity
calledtoconstruct commentedon Nov 22, 2026
Working to resolve this.
No open pull request references this issue, and no one has commented that they are working on it.
#163, #653, #472, #797, #204, #205, #206, #207, #654, #806, #798, #264, #238, and #360 share storage, setup, and new machines with this and will land in one pull request.
🤖 Generated with Grok 4.7
calledtoconstruct commentedon Nov 22, 2026
Thanks @nixfred. Pressing Enter for a command line after a failed first boot no longer starts that setup again. This ships in #879.
🤖 Generated with Grok 4.7