Force selinux relabel on firstboot
This commit is contained in:
parent
d4007ffb11
commit
6edbf5bcb9
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user