From b2f4774044dab2e8f76b8bc97a4736653d78c954 Mon Sep 17 00:00:00 2001 From: Megver83 Date: Wed, 20 Feb 2019 01:45:40 +0000 Subject: [PATCH] Pass --needed when installing pkgs with pacman --- vps2arch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vps2arch b/vps2arch index 717c1c0..92f08e3 100755 --- a/vps2arch +++ b/vps2arch @@ -86,11 +86,11 @@ configure_chroot() { if ! is_openvz && ! pidof haveged >/dev/null; then # Disable signature check, install and launch haveged and re-enable signature checks. sed -i.bak "s/^[[:space:]]*SigLevel[[:space:]]*=.*$/SigLevel = Never/" "/root.$cpu_type/etc/pacman.conf" - chroot_exec 'pacman --noconfirm -Sy haveged && haveged' + chroot_exec 'pacman --needed --noconfirm -Sy haveged && haveged' mv "/root.$cpu_type/etc/pacman.conf.bak" "/root.$cpu_type/etc/pacman.conf" fi chroot_exec 'pacman-key --init && pacman-key --populate archlinux' - chroot_exec 'pacman --noconfirm -Sy awk' + chroot_exec 'pacman --needed --noconfirm -Sy awk' # Generate fstab chroot_exec 'genfstab /mnt >> /etc/fstab'