create /etc/sysconfig/network on f18|f20 as this sometimes is missing
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 25 Jun 2014 13:09:15 +0000 (15:09 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 25 Jun 2014 13:09:15 +0000 (15:09 +0200)
(I suspect dhclient creates it when we do not specify create-vm.sh -s...)

lbuild-initvm.sh

index df78c11..41eac07 100755 (executable)
@@ -214,6 +214,9 @@ function fedora_configure() {
     # set the hostname
     case "$fcdistro" in 
        f18|f2?)
+            cat <<EOF > ${lxc_root}/etc/sysconfig/network
+NETWORKING=yes
+EOF
            cat <<EOF > ${lxc_root}/etc/hostname
 $GUEST_HOSTNAME
 EOF