From 8e0e93854449181047aebc0bb343ee682ca6ffb0 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Tue, 24 Nov 2015 21:26:58 +0200 Subject: [PATCH] Disable automatic udev rules for network interfaces in CentOS --- scripts/centos/cleanup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/centos/cleanup.sh b/scripts/centos/cleanup.sh index faa7e0b49..1f41ffdb4 100644 --- a/scripts/centos/cleanup.sh +++ b/scripts/centos/cleanup.sh @@ -19,6 +19,8 @@ fi # Clean up network interface persistence rm -f /etc/udev/rules.d/70-persistent-net.rules; +mkdir -p /etc/udev/rules.d/70-persistent-net.rules; +rm -f /lib/udev/rules.d/75-persistent-net-generator.rules; for ndev in `ls -1 /etc/sysconfig/network-scripts/ifcfg-*`; do if [ "`basename $ndev`" != "ifcfg-lo" ]; then