From 89682b085cba3775d58f88dd2fbf8af793994554 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Thu, 6 Apr 2023 19:19:07 +0500 Subject: [PATCH] Run pacman twice Sometimes some packages fail to install due to, for instance, mirror issues or due to unstable connection. Running pacman twice increses the chance of successful installation in such cases. --- create-arch-bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-arch-bootstrap.sh b/create-arch-bootstrap.sh index 95eb47c..638022c 100755 --- a/create-arch-bootstrap.sh +++ b/create-arch-bootstrap.sh @@ -247,7 +247,7 @@ if [ -n "\${bad_pkglist}" ]; then echo \${bad_pkglist} > /opt/bad_pkglist.txt fi -pacman --noconfirm --needed -S \${good_pkglist} +pacman --noconfirm --needed -S \${good_pkglist} || pacman --noconfirm --needed -S \${good_pkglist} EOF chmod +x "${bootstrap}"/opt/install_packages.sh