Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build_iso.sh
blob: c63c20d458d1842fec31567ef50633eadc2bceee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash

zprofile="/tmp/archlive/airootfs/root/.zprofile"

# Packages to add to the archiso profile packages
packages=(
	git
	python
	python-pip
	python-build
	python-flit
	python-setuptools
	python-wheel
	python-pyparted
)

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

# Add packages to the archiso profile packages
for package in "${packages[@]}"; do
	echo "$package" >> /tmp/archlive/packages.x86_64
done

find /tmp/archlive
cd /tmp/archlive

mkarchiso -v -w work/ -o out/ ./