You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
21 lines
1.1 KiB
diff -rup livecd-tools-25.0.orig/imgcreate/kickstart.py livecd-tools-25.0/imgcreate/kickstart.py
|
|
--- livecd-tools-25.0.orig/imgcreate/kickstart.py 2018-03-22 12:52:20.229454637 +0100
|
|
+++ livecd-tools-25.0/imgcreate/kickstart.py 2018-03-22 14:12:41.619989962 +0100
|
|
@@ -479,12 +479,12 @@ class SelinuxConfig(KickstartConfig):
|
|
return
|
|
|
|
try:
|
|
- rc = subprocess.call(['restorecon', '-p', '-e', '/proc', '-e',
|
|
- '/sys', '-e', '/dev', '-F', '-R', '/'],
|
|
- preexec_fn=self.chroot)
|
|
+ rc = self.call(["/sbin/setfiles", "-p", "-e", "/proc", "-e",
|
|
+ "/sys", "-e", "/dev",
|
|
+ selinux.selinux_file_context_path(), "/"])
|
|
except OSError as e:
|
|
if e.errno == errno.ENOENT:
|
|
- logging.info('The restorecon command is not available.')
|
|
+ logging.info('The fixfiles command is not available.')
|
|
return
|
|
if rc:
|
|
if ksselinux.selinux == ksconstants.SELINUX_ENFORCING:
|