diff --git a/builder/cmds/autostart.sh b/builder/cmds/autostart.sh index bfe087a..1ce3f7f 100644 --- a/builder/cmds/autostart.sh +++ b/builder/cmds/autostart.sh @@ -1,6 +1,32 @@ #!/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 <