Install NetworkManager only if enabled

This commit is contained in:
Manuel Thalmann 2024-12-08 00:05:44 +01:00
parent 31da52f412
commit 88fc280dd5

View file

@ -63,7 +63,10 @@ begin
end end
and genfstab -U "$mountDir" >>"$mountDir/etc/fstab" and genfstab -U "$mountDir" >>"$mountDir/etc/fstab"
and arch-chroot "$mountDir" systemctl enable NetworkManager
and if isProgramEnabled "networkmanager"
arch-chroot "$mountDir" systemctl enable NetworkManager
end
and if set -q timezone and if set -q timezone
arch-chroot "$mountDir" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime arch-chroot "$mountDir" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime