From 78f731e51bac0a45cdb3a023f3c94fde06b7abff Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 17 Feb 2020 13:47:49 -0500 Subject: [PATCH] cobbler: Correct ifcfg syntax for OpenSUSE Fixes: https://tracker.ceph.com/issues/44158 Signed-off-by: David Galloway --- roles/cobbler/templates/snippets/cephlab_rc_local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/cobbler/templates/snippets/cephlab_rc_local b/roles/cobbler/templates/snippets/cephlab_rc_local index 895f570f..9afac424 100644 --- a/roles/cobbler/templates/snippets/cephlab_rc_local +++ b/roles/cobbler/templates/snippets/cephlab_rc_local @@ -37,7 +37,7 @@ if [ ! -f /.cephlab_net_configured ]; then sleep 5 if ethtool $nic | grep -q "Link detected: yes"; then if command -v zypper &>/dev/null; then - echo -e "DEVICE=$nic\nBOOTPROTO=dhcp\nONBOOT=yes" > /etc/sysconfig/network/ifcfg-$nic + echo -e "DEVICE=$nic\nBOOTPROTO=dhcp\nSTARTMODE=auto" > /etc/sysconfig/network/ifcfg-$nic elif command -v apt-get &>/dev/null; then echo -e "auto lo\niface lo inet loopback\n\nauto $nic\niface $nic inet dhcp" > /etc/network/interfaces else -- 2.47.3