From 54991588e9b38ad7f4a4e455c61115884d0951f4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 7 Jan 2026 20:13:20 +0100 Subject: [PATCH] Make the mirror available during install --- builder/build-iso.sh | 3 +++ configs/airootfs/root/.automated_script.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/builder/build-iso.sh b/builder/build-iso.sh index 0c5c1a3..625b4b3 100755 --- a/builder/build-iso.sh +++ b/builder/build-iso.sh @@ -34,6 +34,9 @@ rm -rf "$build_cache_dir/airootfs/etc/xdg/reflector" # Bring in our configs cp -r /configs/* $build_cache_dir/ +# Persist OMARCHY_MIRROR so it's available at install time +echo "$OMARCHY_MIRROR" > "$build_cache_dir/airootfs/root/omarchy_mirror" + # Setup Omarchy itself if [[ -d /omarchy ]]; then cp -rp /omarchy "$build_cache_dir/airootfs/root/omarchy" diff --git a/configs/airootfs/root/.automated_script.sh b/configs/airootfs/root/.automated_script.sh index 362d202..07e4c3d 100644 --- a/configs/airootfs/root/.automated_script.sh +++ b/configs/airootfs/root/.automated_script.sh @@ -5,6 +5,7 @@ use_omarchy_helpers() { export OMARCHY_PATH="/root/omarchy" export OMARCHY_INSTALL="/root/omarchy/install" export OMARCHY_INSTALL_LOG_FILE="/var/log/omarchy-install.log" + export OMARCHY_MIRROR="$(cat /root/omarchy_mirror)" source /root/omarchy/install/helpers/all.sh }