From e100dcc14c0976080ef9097c203f1bccad7cb2ea Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Fri, 15 Apr 2016 15:09:46 +0200 Subject: [PATCH] rpm/network: Use the IPv4 address if available When the contextualization variables give us both IPv4 and IPv6 addresses, use both instead of expecting CONTEXT_FORCE_IPV4. --- base_rpm.one/etc/one-context.d/10-network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_rpm.one/etc/one-context.d/10-network b/base_rpm.one/etc/one-context.d/10-network index dd968e4..ab11f6e 100755 --- a/base_rpm.one/etc/one-context.d/10-network +++ b/base_rpm.one/etc/one-context.d/10-network @@ -188,7 +188,7 @@ ONBOOT=yes NM_CONTROLLED=no TYPE=Ethernet EOT - [[ -z $IPV6 || -n $CONTEXT_FORCE_IPV4 ]] && gen_iface_conf + [[ -n $IP ]] && gen_iface_conf [[ -n $IPV6 ]] && gen_iface6_conf ) > /etc/sysconfig/network-scripts/ifcfg-${DEV}