dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
599 stars 399 forks source link

Load the SELinux policy after switch_root and remove the selinux-loadpolicy module #2652

Open gtrentalancia opened 3 months ago

gtrentalancia commented 3 months ago

Load the SELinux policy after switch_root and remove the selinux-loadpolicy module.

This fixes the bootup process with recent kernels, as it was getting stuck on Permission Denied errors due to the early SELinux policy load.

Fixes https://github.com/dracutdevs/dracut/issues/2653

.github/labeler.yml | 4 - modules.d/98selinux/module-setup.sh | 17 ------- modules.d/98selinux/selinux-loadpolicy.sh | 70 ------------------------------ modules.d/99base/init.sh | 5 ++ 4 files changed, 5 insertions(+), 91 deletions(-)