File koan_fix_selinux_check.patch of Package cobbler
Index: cobbler-2.2.2/koan/app.py
===================================================================
--- cobbler-2.2.2.orig/koan/app.py
+++ cobbler-2.2.2/koan/app.py
@@ -1733,7 +1733,10 @@ class Koan:
# check whether we have SELinux enabled system
args = "/usr/sbin/selinuxenabled"
- selinuxenabled = sub_process.call(args)
+ try:
+ selinuxenabled = sub_process.call(args)
+ except OSError:
+ selinuxenabled = -1
if selinuxenabled == 0:
# required context type
context_type = "virt_image_t"