Refactor `build_iso.sh` archinstall archiso profile package (#1803)
This commit is contained in:
parent
c10acfa5ae
commit
dc19d5f0fa
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
packages_file="/tmp/archlive/packages.x86_64"
|
||||||
|
|
||||||
# Packages to add to the archiso profile packages
|
# Packages to add to the archiso profile packages
|
||||||
packages=(
|
packages=(
|
||||||
git
|
git
|
||||||
|
|
@ -16,7 +18,6 @@ mkdir -p /tmp/archlive/airootfs/root/archinstall-git
|
||||||
cp -r . /tmp/archlive/airootfs/root/archinstall-git
|
cp -r . /tmp/archlive/airootfs/root/archinstall-git
|
||||||
|
|
||||||
cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
|
cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
|
||||||
pip uninstall archinstall -y
|
|
||||||
cd archinstall-git
|
cd archinstall-git
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
|
|
@ -33,9 +34,11 @@ pacman --noconfirm -S git archiso
|
||||||
|
|
||||||
cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
|
cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
|
||||||
|
|
||||||
|
sed -i /archinstall/d $packages_file
|
||||||
|
|
||||||
# Add packages to the archiso profile packages
|
# Add packages to the archiso profile packages
|
||||||
for package in "${packages[@]}"; do
|
for package in "${packages[@]}"; do
|
||||||
echo "$package" >> /tmp/archlive/packages.x86_64
|
echo "$package" >> $packages_file
|
||||||
done
|
done
|
||||||
|
|
||||||
find /tmp/archlive
|
find /tmp/archlive
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue