#!/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_USER_NAME="$(/mnt/etc/sudoers.d/99-omarchy-installer </dev/null || true # 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 chroot_bash -lc "source /home/$OMARCHY_USER/.local/share/omarchy/install.sh || bash" fi