[PATCH 2/2] fix uuid reference in parse-kickstart
Brian C. Lane
bcl at redhat.com
Wed Feb 13 22:21:04 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
---
dracut/parse-kickstart | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index afca075..fcf847a 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -269,8 +269,8 @@ def ksnet_to_ifcfg(net, filename=None):
os.makedirs("/tmp/ifcfg")
ifcfg['DEVICE'] = dev
ifcfg['HWADDR'] = readsysfile("/sys/class/net/%s/address" % dev)
- uuid = str(uuid.uuid4())
- ifcfg['UUID'] = uuid
+ if_uuid = str(uuid.uuid4())
+ ifcfg['UUID'] = if_uuid
# we set real ONBOOT value in anaconda, here
# we use it to activate devcies by NM on start
ifcfg['ONBOOT'] = "yes" if net.activate else "no"
@@ -313,7 +313,7 @@ def ksnet_to_ifcfg(net, filename=None):
if net.bootProto == 'dhcp':
srcpath = "/tmp/dhclient.%s.lease" % dev
dstdir = "/tmp/ifcfg-leases"
- dstpath = "%s/dhclient-%s-%s.lease" % (dstdir, uuid, dev)
+ dstpath = "%s/dhclient-%s-%s.lease" % (dstdir, if_uuid, dev)
if os.path.exists(srcpath):
if not os.path.isdir(dstdir):
os.makedirs(dstdir)
--
1.8.1
More information about the anaconda-patches
mailing list