Problém
Při pokusu o připojení souborového systému se zobrazuje chybová zpráva:
# mount /dev/mapper/vg-lv /mnt mount: /mnt does not contain SELinux labels. You just mounted an file system that supports labels which does not contain labels, onto an SELinux box. It is likely that confined applications will generate AVC messages and not be allowed access to this file system. For more details see restorecon(8) and mount(8). mount: /dev/mapper/vg-lv mounted on /mnt.
I když výstup ukazuje, že zařízení bylo připojeno, ve skutečnosti tomu tak nebylo, což lze potvrdit příkazy jako df nebo mount.
Řešení
Kontext SELinux oddílu je nesprávný. Aby bylo možné oddíl připojit, je třeba nastavit správný kontext.
Přejmenujte souborový systém vytvořením /.autorelabel následovaný restartem nebo provedením restorecon na souborovém systému:
# touch /.autorelabel # reboot
nebo
# restorecon -Rv /