OCI: System Fails to Boot with Error “Failed to load SELinux policy, freezing”
Applies To:
Oracle Cloud Infrastructure
Linux x86-64
Symptoms:
When booting the system with selinux
enabled, the process fails and freezes with following messages
[ 12.508664] systemd[1]: Failed to load SELinux policy. [!!!!!!] Failed to load SELinux policy, freezing. [ 12.512968] systemd[1]: Freezing execution.
At this stage, the system does not proceed to normal login.
Cause:
The failure occurs because the selinux
binary policy file, typically located at /etc/selinux/targeted/policy/policy.31
is missing or corrupted.
# ls -l /etc/selinux/targeted/policy total 0
Without this file, systemd
cannot load a valid policy during initialization, which forces the system into a frozen state.
Solution:
To resolve this issue, restore the contents of