From efecc030a38dbab15265e00158b9e7f31f41ea86 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Wed, 3 Sep 2025 00:57:07 +0200 Subject: [PATCH] Update trap --- builder/cmds/autostart-offline.sh | 183 +++++++++++++++++++++--------- 1 file changed, 132 insertions(+), 51 deletions(-) diff --git a/builder/cmds/autostart-offline.sh b/builder/cmds/autostart-offline.sh index eea2652..f6b9e28 100644 --- a/builder/cmds/autostart-offline.sh +++ b/builder/cmds/autostart-offline.sh @@ -1,67 +1,69 @@ #!/usr/bin/env bash set -euo pipefail -chroot_bash() { - HOME=/home/$OMARCHY_USER \ - arch-chroot -u $OMARCHY_USER /mnt/ \ - env OMARCHY_CHROOT_INSTALL=1 \ - OMARCHY_OFFLINE_INSTALL=1 \ - OMARCHY_USER_NAME="$(/dev/null || true +} + +chroot_bash() { + HOME=/home/$OMARCHY_USER \ + arch-chroot -u $OMARCHY_USER /mnt/ \ + env OMARCHY_CHROOT_INSTALL=1 \ + OMARCHY_OFFLINE_INSTALL=1 \ + OMARCHY_USER_NAME="$(/dev/null # Run Omarchy installer directly (skip boot.sh since it would try to clone again) - # boot.sh just clones the repo and runs install.sh, but we already have the repo + # The omarchy installer will handle its own spinner/UI chroot_bash -lc "source /home/$OMARCHY_USER/.local/share/omarchy/install.sh || bash" fi