Refactor `build_iso.sh` zprofile (#1799)
This commit is contained in:
parent
a968dccbf1
commit
c10acfa5ae
22
build_iso.sh
22
build_iso.sh
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
zprofile="/tmp/archlive/airootfs/root/.zprofile"
|
|
||||||
|
|
||||||
# Packages to add to the archiso profile packages
|
# Packages to add to the archiso profile packages
|
||||||
packages=(
|
packages=(
|
||||||
git
|
git
|
||||||
|
|
@ -17,18 +15,18 @@ packages=(
|
||||||
mkdir -p /tmp/archlive/airootfs/root/archinstall-git
|
mkdir -p /tmp/archlive/airootfs/root/archinstall-git
|
||||||
cp -r . /tmp/archlive/airootfs/root/archinstall-git
|
cp -r . /tmp/archlive/airootfs/root/archinstall-git
|
||||||
|
|
||||||
echo "pip uninstall archinstall -y" > $zprofile
|
cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
|
||||||
echo "cd archinstall-git" >> $zprofile
|
pip uninstall archinstall -y
|
||||||
echo "rm -rf dist" >> $zprofile
|
cd archinstall-git
|
||||||
|
rm -rf dist
|
||||||
|
|
||||||
echo "python -m build --wheel --no-isolation" >> $zprofile
|
python -m build --wheel --no-isolation
|
||||||
echo "pip install dist/archinstall*.whl" >> $zprofile
|
pip install dist/archinstall*.whl
|
||||||
|
|
||||||
echo "echo \"This is an unofficial ISO for development and testing of archinstall. No support will be provided.\"" >> $zprofile
|
echo "This is an unofficial ISO for development and testing of archinstall. No support will be provided."
|
||||||
echo "echo \"This ISO was built from Git SHA $GITHUB_SHA\"" >> $zprofile
|
echo "This ISO was built from Git SHA $GITHUB_SHA"
|
||||||
echo "echo \"Type archinstall to launch the installer.\"" >> $zprofile
|
echo "Type archinstall to launch the installer."
|
||||||
|
_EOF_
|
||||||
cat $zprofile
|
|
||||||
|
|
||||||
pacman -Sy
|
pacman -Sy
|
||||||
pacman --noconfirm -S git archiso
|
pacman --noconfirm -S git archiso
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue