Force selinux relabel on firstboot

This commit is contained in:
Davide Cavalca 2022-09-22 12:57:35 +00:00
parent d4007ffb11
commit 6edbf5bcb9
2 changed files with 6 additions and 14 deletions

View File

@ -82,4 +82,10 @@ rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
#======================================
# Force selinux relabel on firstboot
#--------------------------------------
# Workaround for https://github.com/OSInside/kiwi/issues/2192
touch /.autorelabel
exit 0

View File

@ -1,14 +0,0 @@
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted