imgcreate/creator.py

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

imgcreate/creator.py

Jeremy Katz-3
 imgcreate/creator.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit fd252dc757a086b104decb2c1bd88345450efcf5
Author: Jeremy Katz <[hidden email]>
Date:   Mon Apr 13 15:44:56 2009 -0400

    Fix traceback with selinux disabled (#495269)

diff --git a/imgcreate/creator.py b/imgcreate/creator.py
index 498f7e6..823afc5 100644
--- a/imgcreate/creator.py
+++ b/imgcreate/creator.py
@@ -433,6 +433,8 @@ class ImageCreator(object):
 
     def __getbooleans(self):
         booleans = []
+        if not kickstart.selinux_enabled(self.ks):
+            return booleans
         for i in  selinux.security_get_boolean_names()[1]:
             on = selinux.security_get_boolean_active(i)
             booleans.append(("/booleans/%s" % i, "%d %d" % (on, on)))


--
Fedora-livecd-list mailing list
[hidden email]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list