summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-09-25 23:52:47 +0000
committerJeremy Katz <katzj@redhat.com>2003-09-25 23:52:47 +0000
commitbd7ccc2e34f17e4b681d43ae5f0161633b9aec43 (patch)
tree6c9b39fa5983571d3fb698d64612298902bd5c44
parent622991ca1e90621480fa6ab1584ebb476182a89c (diff)
downloadanaconda-bd7ccc2e34f17e4b681d43ae5f0161633b9aec43.tar.gz
anaconda-bd7ccc2e34f17e4b681d43ae5f0161633b9aec43.tar.xz
anaconda-bd7ccc2e34f17e4b681d43ae5f0161633b9aec43.zip
write out DHCP_HOSTNAME if we have an overriden hostname (#81613)
-rw-r--r--network.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/network.py b/network.py
index 7f03055ec..519299d9b 100644
--- a/network.py
+++ b/network.py
@@ -377,6 +377,12 @@ class Network:
f.write("# %s\n" % (dev.get("DESC"),))
f.write(str(dev))
+
+ # write out the hostname as DHCP_HOSTNAME if given (#81613)
+ if (dev.get('bootproto') == 'dhcp' and self.hostname and
+ self.overrideDHCPhostname):
+ f.write("DHCP_HOSTNAME=%s\n" %(self.hostname,))
+
f.close()
# /etc/sysconfig/network