From dc19d5f0fa8283f6bdb954987f282a44fcb197a1 Mon Sep 17 00:00:00 2001 From: Daemon Coder <11915375+codefiles@users.noreply.github.com> Date: Sun, 7 May 2023 04:16:52 -0400 Subject: Refactor `build_iso.sh` archinstall archiso profile package (#1803) --- build_iso.sh | 7 +++++-- 1 file 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 -- cgit v1.2.3-70-g09d2