启用 Selinux 后 Azure Ubuntu 22 LTS VM 无法启动

启用 Selinux 后 Azure Ubuntu 22 LTS VM 无法启动

我正在尝试在 Azure 中部署新的 Ubuntu 22LTS VM。 VM 部署运行良好,但是当我启用 Selinux 并重新启动计算机时,出现以下错误:

[    6.173474] FAT-fs (sda15): IO charset iso8859-1 not found
[FAILED] Failed to mount /boot/efi.
See 'systemctl status boot-efi.mount' for details.
[DEPEND] Dependency failed for Local File Systems.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Emergency Mode.
         Starting Create final runt…dir for shutdown pivot root...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create final runt…e dir for shutdown pivot root.
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Reached target System Initialization.
         Starting Relabel all filesystems...
[FAILED] Failed to start Relabel all filesystems.
See 'systemctl status selinux-autorelabel.service' for details.

我使用以下命令来启用 selinux:

sudo apt install policycoreutils selinux-utils selinux-basics
sudo selinux-activate
sudo selinux-config-enforcing 

并且还卸载了:

sudo apt-get remove apparmor -y

我不是 selinux 专家,所以我不知道是否需要更新任何布尔值或任何文件上下文。

谢谢,B

相关内容