Add option to build online ISO (#6)
* We will use iwctl directly * Make it possible to tweak build script * Allow the toggling * Add online iso build option * Formatting
This commit is contained in:
1 parent
ccd54ece8f
commit
217f84de33
3 files changed
+209
-65
No files matched your search
@@ -8,12 +8,18 @@ git submodule update --init --recursive --jobs=8
|
||||
BUILD_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
mkdir -p "$BUILD_ROOT/out"
|
||||
|
||||
# Determine which build script to use
|
||||
if [[ $1 == "--offline" ]]; then
|
||||
BUILD_SCRIPT="build_iso.sh"
|
||||
else
|
||||
BUILD_SCRIPT="build_online_iso.sh"
|
||||
fi
|
||||
|
||||
# Run the builder
|
||||
docker run --rm \
|
||||
--privileged \
|
||||
--privileged \
|
||||
-v "$BUILD_ROOT/out/:/out/" \
|
||||
-v "$BUILD_ROOT/build_iso.sh:/build_iso.sh:ro" \
|
||||
-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" \
|
||||
@@ -23,7 +29,7 @@ docker run --rm \
|
||||
-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" \
|
||||
archlinux/archlinux:latest /build_iso.sh
|
||||
archlinux/archlinux:latest /$BUILD_SCRIPT
|
||||
|
||||
# Make iso accessible to all
|
||||
sudo chmod 777 -R "$BUILD_ROOT/out"
|
||||
Reference in new issue
Block a user