Pass --needed when installing pkgs with pacman
This commit is contained in:
parent
233a436d74
commit
b2f4774044
1 changed files with 2 additions and 2 deletions
4
vps2arch
4
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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue