From 8ad8c948f73d66add1baa685d193e05b3edf73c5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 28 Aug 2025 08:40:18 +0200 Subject: [PATCH] Make it easier to restart the installation process --- builder/cmds/autostart.sh | 52 +++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 24 deletions(-) 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 <