Pass --needed when installing pkgs with pacman

This commit is contained in:
Megver83 2019-02-20 01:45:40 +00:00
parent 233a436d74
commit b2f4774044

View file

@ -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'