Description of problem:
In testing bug#401531 ... it appears that the new "network --bootproto=query"
syntax is not recognized as valid by pykickstart.
The installation will stop and prompt to reboot in stage#2 as seen below:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Build iso file with a kickstart on the iso that contains:
2. Boot iso image with: linux ks=cdrom
3. Answer any loader questions to proceed to stage#2
pykickstart doesn't like kickstart syntax
Dialog stating ...
option --bootproto: invalid choice: 'query' (choose from 'dhcp', 'bootp', 'static')
pykickstart should be happy
This blocks end-2-end verification of bug#401531.
While this is late in the cycle, if we desire to support the hotfix pushed out
against 5.1 (officially fixed in #401531), I think we'll need to take this in.
Created attachment 302001 [details]
screen capture of the error mentioned in comment #0
This patch should fix it:
diff --git a/pykickstart/parser.py b/pykickstart/parser.py
index a37baa0..c4a0e82 100644
@@ -581,7 +581,7 @@ class KickstartHandlers:
def doNetwork(self, args):
op = KSOptionParser(lineno=self.lineno)
op.add_option("--bootproto", dest="bootProto", default="dhcp",
- choices=["dhcp", "bootp", "static"])
+ choices=["dhcp", "bootp", "static", "query"])
VERIFIED proposed patch in updates image
(http://devserv.devel.redhat.com/~jlaska/updates-441837.img (also includes fix
This will be fixed in pykickstart-0.43-1.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.