From 2be483ffae74d1a96f8df7a22ef915c857a11b5a Mon Sep 17 00:00:00 2001 From: parmentelat Date: Wed, 5 Dec 2018 12:50:38 +0100 Subject: [PATCH] go for networkmanager all the way --- lbuild-initvm.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index da0ef1c1..48ad16ac 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -279,16 +279,12 @@ EOF local guest_ifcfg=${lxc_root}/etc/sysconfig/network-scripts/ifcfg-$VIF_GUEST mkdir -p $(dirname ${guest_ifcfg}) - # starting with f29, we go for NetworkManager as older network-scripts - # is about to be deprecated - local nm_controlled=false - [[ $fcdistro == f29 ]] && nm_controlled=true - [[ $fcdistro == f3[0-9] ]] && nm_controlled=true - + # starting with f27, we go for NetworkManager + # no more NM_CONTROLLED nonsense if [ -n "$NAT_MODE" ]; then - write_guest_ifcfg_natip $nm_controlled + write_guest_ifcfg_natip else - write_guest_ifcfg_publicip $nm_controlled + write_guest_ifcfg_publicip fi > $guest_ifcfg [ -z "$IMAGE" ] && fedora_configure_yum $lxc $fcdistro $pldistro @@ -578,7 +574,6 @@ EOF # this one is dhcp-based function write_guest_ifcfg_natip () { - local nm_controlled=$1; shift cat <