Failed to load SELinux policy

I used opensuse-migration-tool to upgrade Leap 16.0 to 16.1. Near the end of the installation, I selected the option to use SELinux rather than apparmor. The installer reported that setting up SELinux failed. Now when booting, the system stops at “Failed to load SELinux policy”.

How can I fix this?

I found one similar thread at SELinux issue freezing startup, but the grub entries mentioned there are not in this grub.

Hi
So at the grub menu, press “e” to edit arrow down to the line starting linux, press the “end” key and add security=selinux selinux=1 . Note if security=apparmor is present, then delete that part.

If system comes up ok, then as root user add them in via a console session;

update-bootloader --del-option security=apparmor
update-bootloader --add-option security=selinux
update-bootloader --add-option selinux=1
update-bootloader --config

I did the edit, but boot stopped again with “Failed to load SELinux policy”.
security=apparmor was not present.

The system booted after doing “Set the value of the “selinux” boot parameter to 0” as suggested at SELinux issue freezing startup - #3 by dcurtisfra.
Then I did the procedure at https://en.opensuse.org/Portal:SELinux/Setup and that got the system booting normally and using selinux.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.