Install networkmanager only if necessary

This commit is contained in:
Manuel Thalmann 2024-12-08 01:47:04 +01:00
parent fa295f3b1a
commit bcdd7b0d8a

View file

@ -36,7 +36,6 @@ begin
base \ base \
linux \ linux \
linux-firmware \ linux-firmware \
networkmanager \
man-db \ man-db \
man-pages \ man-pages \
texinfo texinfo
@ -65,6 +64,7 @@ begin
and genfstab -U "$mountDir" >>"$mountDir/etc/fstab" and genfstab -U "$mountDir" >>"$mountDir/etc/fstab"
and if isProgramEnabled "networkmanager" and if isProgramEnabled "networkmanager"
and pacstrap -K "$mountDir" networkmanager
arch-chroot "$mountDir" systemctl enable NetworkManager arch-chroot "$mountDir" systemctl enable NetworkManager
end end