attempt to start the network in the f31 vms
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 27 Nov 2019 08:26:09 +0000 (09:26 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 27 Nov 2019 08:26:13 +0000 (09:26 +0100)
lbuild-initvm.sh

index b26375b..df10e8e 100755 (executable)
@@ -312,7 +312,8 @@ function fedora_configure_systemd() {
     ln -sf /dev/null ${lxc_root}/etc/systemd/system/"getty@.service"
     rm -f ${lxc_root}/etc/systemd/system/getty.target.wants/*service || :
 # can't seem to handle this one with systemctl
     ln -sf /dev/null ${lxc_root}/etc/systemd/system/"getty@.service"
     rm -f ${lxc_root}/etc/systemd/system/getty.target.wants/*service || :
 # can't seem to handle this one with systemctl
-    chroot ${lxc_root} $personality chkconfig network on
+# second part should trigger starting with fedora31, where the network target is not manually manageable
+    chroot ${lxc_root} $personality chkconfig network on ||     chroot ${lxc_root} $personality systemctl enable NetworkManager
 }
 
 # overwrite container yum config
 }
 
 # overwrite container yum config