Clean up the online installer

This commit is contained in:
David Heinemeier Hansson committed 2025-08-20 09:37:18 +02:00
1 parent e2183fefee
commit cb078cc13a
14 files changed
+59 -111

No files matched your search

+6 -12
View File
@@ -1,13 +1,14 @@
#!/bin/bash
# Abort if anything fails
set -e
# Ensure we have the submodule checked out
git submodule update --init --recursive --jobs=8
# Prepare build repo
BUILD_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
mkdir -p "$BUILD_ROOT/out"
BUILD_ROOT="$(realpath "${BASH_SOURCE[0]%/*}/..")"
mkdir -p "$BUILD_ROOT/release"
# Determine which build script to use
if [[ $1 == "--offline" ]]; then
@@ -19,18 +20,11 @@ fi
# Run the builder
docker run --rm \
--privileged \
-v "$BUILD_ROOT/out/:/out/" \
-v "$BUILD_ROOT/release/:/out/" \
-v "$BUILD_ROOT/$BUILD_SCRIPT:/$BUILD_SCRIPT:ro" \
-v "$BUILD_ROOT/archiso:/archiso:ro" \
-v "$BUILD_ROOT/grub-autoboot.patch:/grub-autoboot.patch:ro" \
-v "$BUILD_ROOT/efi-autoboot.patch:/efi-autoboot.patch:ro" \
-v "$BUILD_ROOT/permissions.patch:/permissions.patch:ro" \
-v "$BUILD_ROOT/aur-mirror.patch:/aur-mirror.patch:ro" \
-v "$BUILD_ROOT/offline-mirror.patch:/offline-mirror.patch:ro" \
-v "$BUILD_ROOT/check_connectivity.sh:/check_connectivity.sh:ro" \
-v "$BUILD_ROOT/omarchy.packages:/omarchy.packages:ro" \
-v "$BUILD_ROOT/archinstall.packages:/archinstall.packages:ro" \
-v "$BUILD_ROOT/builder:/builder:ro" \
archlinux/archlinux:latest /$BUILD_SCRIPT
# Make iso accessible to all
sudo chmod 777 -R "$BUILD_ROOT/out"
sudo chmod 777 -R "$BUILD_ROOT/release"