diskimage-builder/diskimage_builder/elements/rpm-distro
Serena Ziviani 19cc00041a Also use selinuxenabled to check selinux status
Currently, the cleanup script is using the existence of the folder
/sys/fs/selinux to check if SELinux is enabled. This, however, is
misleading in case disk-image-builder is used inside a Docker
container on a selinux-enabled host. In this case, the folder exists
in the container but SELinux is disabled.

This patch addresses the problem by checking, in addition to the
check already in place, the output of the command selinuxenabled.

Change-Id: I83e58f2467e60df9f0f00f7b7a58d0e2ce357a9a
Closes-Bug: #1820077
2019-03-28 14:20:24 +01:00
..
cleanup.d Also use selinuxenabled to check selinux status 2019-03-28 14:20:24 +01:00
post-install.d Refactor: block-device filesystem creation, mount and fstab 2017-05-12 13:52:02 +02:00
pre-install.d rpm-distro: set the contentdir yum var 2018-05-14 05:38:37 +00:00