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:
Diffstat (limited to 'build_iso.sh')
-rwxr-xr-xbuild_iso.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/build_iso.sh b/build_iso.sh
new file mode 100755
index 00000000..74e815ee
--- /dev/null
+++ b/build_iso.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+zprofile="/tmp/archlive/airootfs/root/.zprofile"
+
+mkdir -p /tmp/archlive/airootfs/root/archinstall-git
+cp -r . /tmp/archlive/airootfs/root/archinstall-git
+
+echo "pip uninstall archinstall -y" > $zprofile
+echo "cd archinstall-git" >> $zprofile
+echo "rm -rf dist" >> $zprofile
+
+echo "python -m build --wheel --no-isolation" >> $zprofile
+echo "pip install dist/archinstall*.whl" >> $zprofile
+
+echo "echo \"This is an unofficial ISO for development and testing of archinstall. No support will be provided.\"" >> $zprofile
+echo "echo \"This ISO was built from Git SHA $GITHUB_SHA\"" >> $zprofile
+echo "echo \"Type archinstall to launch the installer.\"" >> $zprofile
+
+cat $zprofile
+
+pacman -Sy
+pacman --noconfirm -S git archiso
+
+cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
+
+echo -e "git\npython\npython-pip\npython-build\npython-flit\npython-setuptools\npython-wheel\npython-pyparted" >> /tmp/archlive/packages.x86_64
+
+find /tmp/archlive
+cd /tmp/archlive
+
+mkarchiso -v -w work/ -o out/ ./