We don't want to parse and process data from the %addon section in the early dracut stage, but still the section has to be setup to the NullSection to prevent errors.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- dracut/parse-kickstart | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart index 6659d1e..f843d4f 100755 --- a/dracut/parse-kickstart +++ b/dracut/parse-kickstart @@ -196,6 +196,11 @@ class DracutHandler(handlerclass): handlerclass.__init__(self, commandUpdates=dracutCmds) self.output = [] self.ksdevice = None + + def setupSections(self): + super(DracutHandler, self).setupSections() + self.registerSection(NullSection(self.handler, sectionOpen="%addon")) + def dispatcher(self, args, lineno): obj = handlerclass.dispatcher(self, args, lineno) # and execute any specified dracut_args
This should also be applied to rhel7-branch once the bug is approved.
We don't want to parse and process data from the %addon section in the early dracut stage, but still the section has to be setup to the NullSection to prevent errors.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com
I think you need a:
from pykickstart.sections import NullSection
- Chris
On Wed, 2014-05-28 at 09:54 -0400, Chris Lumens wrote:
We don't want to parse and process data from the %addon section in the early dracut stage, but still the section has to be setup to the NullSection to prevent errors.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com
I think you need a:
from pykickstart.sections import NullSection
Good catch, thanks! Fixing locally.
anaconda-patches@lists.fedorahosted.org