Refactor `build_iso.sh` added packages (#1797)

This commit is contained in:
Daemon Coder 2023-05-07 02:41:50 -04:00 committed by GitHub
parent c0a7d45a83
commit 232939e910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -2,6 +2,18 @@
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
@ -23,7 +35,10 @@ 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
# 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