Install NetworkManager only if enabled

This commit is contained in:
Manuel Thalmann 2024-12-08 00:05:44 +01:00
parent 19871a2e49
commit 6a5ec8d5de

View file

@ -63,7 +63,10 @@ begin
end
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
arch-chroot "$mountDir" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime