Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build_iso.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-05-10 15:56:28 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-05-10 15:56:28 +0200
commit683da22298abbd90f51d4dd38a7ec4b0dfb04555 (patch)
treeec2ac04967f9277df038edc362201937b331abe5 /build_iso.sh
parentaf7ab9833c9f9944874f0162ae0975175ddc628d (diff)
parent3381cd55673e5105697d354cf4a1be9a7bcef062 (diff)
merged with upstreamHEADmaster
Diffstat (limited to 'build_iso.sh')
-rwxr-xr-xbuild_iso.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/build_iso.sh b/build_iso.sh
new file mode 100755
index 00000000..682b69df
--- /dev/null
+++ b/build_iso.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+set -e
+
+packages_file="/tmp/archlive/packages.x86_64"
+
+# Packages to add to the archiso profile packages
+packages=(
+ gcc
+ git
+ pkgconfig
+ python
+ python-pip
+ python-build
+ python-setuptools
+ python-wheel
+ python-simple-term-menu
+ python-pyparted
+)
+
+mkdir -p /tmp/archlive/airootfs/root/archinstall-git
+cp -r . /tmp/archlive/airootfs/root/archinstall-git
+
+cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
+ cd archinstall-git
+ rm -rf dist
+
+ python -m build --wheel --no-isolation
+ pip install dist/archinstall*.whl --break-system-packages
+
+ echo "This is an unofficial ISO for development and testing of archinstall. No support will be provided."
+ echo "This ISO was built from Git SHA $GITHUB_SHA"
+ echo "Type archinstall to launch the installer."
+_EOF_
+
+pacman --noconfirm -S archiso
+
+cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
+
+sed -i /archinstall/d "$packages_file"
+
+# Add packages to the archiso profile packages
+for package in "${packages[@]}"; do
+ echo "$package" >> "$packages_file"
+done
+
+find /tmp/archlive
+cd /tmp/archlive
+
+mkarchiso -v -w work/ -o out/ ./