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:
authorDaemon Coder <11915375+codefiles@users.noreply.github.com>2023-05-07 04:16:52 -0400
committerGitHub <noreply@github.com>2023-05-07 10:16:52 +0200
commitdc19d5f0fa8283f6bdb954987f282a44fcb197a1 (patch)
tree7e34a9f471cfed540c3016200e9a1d62798327f4 /build_iso.sh
parentc10acfa5aeda44db9393fbbbf75356c0ff411e43 (diff)
Refactor `build_iso.sh` archinstall archiso profile package (#1803)
Diffstat (limited to 'build_iso.sh')
-rwxr-xr-xbuild_iso.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/build_iso.sh b/build_iso.sh
index df57b723..073a5459 100755
--- a/build_iso.sh
+++ b/build_iso.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+packages_file="/tmp/archlive/packages.x86_64"
+
# Packages to add to the archiso profile packages
packages=(
git
@@ -16,7 +18,6 @@ mkdir -p /tmp/archlive/airootfs/root/archinstall-git
cp -r . /tmp/archlive/airootfs/root/archinstall-git
cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
- pip uninstall archinstall -y
cd archinstall-git
rm -rf dist
@@ -33,9 +34,11 @@ pacman --noconfirm -S git archiso
cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
+sed -i /archinstall/d $packages_file
+
# Add packages to the archiso profile packages
for package in "${packages[@]}"; do
- echo "$package" >> /tmp/archlive/packages.x86_64
+ echo "$package" >> $packages_file
done
find /tmp/archlive