From 47c3f7682d7f91bca9a7d8a52a58cadee7746a9b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 16 Sep 2023 16:31:43 +0200 Subject: [PATCH] bootstrap: Do not build paru on tmpfs The tmp fs can sometimes be very small, too small in fact to build paru on. --- bootstrap/install_packages.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap/install_packages.sh b/bootstrap/install_packages.sh index 86c1315..66ac563 100755 --- a/bootstrap/install_packages.sh +++ b/bootstrap/install_packages.sh @@ -45,10 +45,12 @@ install_paru() { fi # use tmp dir to make paru - target=$(mktemp -d) - git clone https://aur.archlinux.org/paru.git "$target" - cd "$target" || exit + tempdir=".paru" + git clone https://aur.archlinux.org/paru.git "$tempdir" + pushd "$tempdir" || exit 1 makepkg -si + popd || exit 1 + rm -rf "$tempdir" } update_repos() {