On Wed, Dec 16, 2009 at 12:03 AM, Alan Pevec <apevec(a)gmail.com> wrote:
I've just found one issue with the patch:
@@ -734,6 +725,9 @@ class ImageCreator(object):
+ # selinux should always come last
"""Launch a shell in the install root.
NAK. Nothing *EVER* can come after running %post scripts. It breaks
one of the very few things that have to always be held true for
kickstart scripts that came about after a few years of flip-flopping
things around for various reasons that seemed good at the time.
Other issue is that pykickstart "selinux" command
doesn't have --type option
to specify the policy and lokkit. assumes "targeted" if
--selinuxtype=<type> is not specified. SelinuxConfig should not touch
SELINUXTYPE already set in /etc/selinux/config by %post script.
To avoid lokkit side-effects, I'll amend the patch to use Augeas to modify
I'd rather not have a dependency on augeas here. If it's important
that people be able to specify the policy type in the kickstart
config, then we should push that support in via pykickstart and
lokkit, not change to a whole new toolset.