diff --git a/builder/cmds/autostart.sh b/builder/cmds/autostart.sh index 1ce3f7f..ed55f4b 100644 --- a/builder/cmds/autostart.sh +++ b/builder/cmds/autostart.sh @@ -1,32 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -run_install() { - # Configurator for user information, disk selection, and wifi configuration - ./configurator - - # Get username from installer config for reliable error recovery - OMARCHY_USER="$(jq -r '.users[0].username' user_credentials.json)" - - # Install using files generated by the ./configurator - archinstall \ - --config user_configuration.json \ - --creds user_credentials.json \ - --silent - - # No need to ask for sudo during the installation (omarchy itself responsible for removing after install) - mkdir -p /mnt/etc/sudoers.d - cat >/mnt/etc/sudoers.d/99-omarchy-installer </mnt/etc/sudoers.d/99-omarchy-installer </dev/null || echo "https://omarchy.org/install") + chroot_bash -lc "curl -fsSL $OMARCHY_INSTALL_URL | bash || bash" fi