[PATCH] - Write --dhcpclass instead of --class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,
I've seen several BZ wrt anaconda expecting --dhcpclass argument for the network command in a ks.cfg file but when such is present the resulting anaconda-ks.cfg will have --class. The attached patch fixes this.
 network.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index c8f2589..fcb0aa3 100644
--- a/network.py
+++ b/network.py
@@ -443,7 +443,7 @@ class Network:
                 if dev.get('bootproto').lower() == 'dhcp':
                     f.write(" --bootproto dhcp")
                     if dev.get('dhcpclass'):
-                        f.write(" --class %s" % dev.get('dhcpclass'))
+                        f.write(" --dhcpclass %s" % dev.get('dhcpclass'))
                     if self.overrideDHCPhostname:
                         if (self.hostname and
                             self.hostname != "localhost.localdomain"):
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux