Il problema
Ottenere sotto il messaggio di errore quando si tenta di montare un filesystem:
# 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. Anche se l'output mostra che il dispositivo è stato montato, in realtà non lo era, il che può essere confermato con comandi come df o mount.
La soluzione
Il contesto SELinux della partizione non è corretto. È necessario impostare il contesto corretto per poter montare la partizione.
Rietichetta il filesystem creando /.autorelabel seguito da un riavvio o eseguire un ripristinocon sul filesystem:
# touch /.autorelabel # reboot
o
# restorecon -Rv /