From c91e013cd4c473df120697e8130700d4d95c83ed Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Tue, 9 Jan 2024 15:51:33 +0100 Subject: [PATCH] Copy pacman.conf file if does not exist --- lib/core/build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/core/build.sh b/lib/core/build.sh index 0f3d8b0..7a2ef9d 100644 --- a/lib/core/build.sh +++ b/lib/core/build.sh @@ -25,7 +25,8 @@ function _install_pkg(){ function _prepare() { # ArchLinux System initialization prepare_archlinux - sudo pacman -S --noconfirm git arch-install-scripts haveged + # curl is used to download pacman.conf file + sudo pacman -S --noconfirm git arch-install-scripts haveged curl } function build_image_env(){ @@ -59,12 +60,19 @@ function build_image_env(){ fi sudo mkdir -p "${maindir}"/root/run/lock - sudo tee -a "${maindir}"/root/etc/pacman.conf > /dev/null <