cosmos72 / fstransform

tool for in-place filesystem conversion (for example from jfs/xfs/reiser to ext2/ext3/ext4) without backup
GNU General Public License v2.0
278 stars 28 forks source link

xfs -> ext4 conversion does not transfer SELinux contexts #55

Open GIJack opened 1 year ago

GIJack commented 1 year ago

xfs -> ext4 conversion does not transfer SELinux contexts

Doing this on RHEL7.

edit: Apparantly it does not transfer anything in the xattr field.

Plz, pretty please add this feature.

cosmos72 commented 1 year ago

Yes, I have a pair of suspects. How can you inspect/modify SELinux contexts from command line? Maybe with lsattr ?

If so, that's the reason: fstransform does not (yet) copy extended attributes, ACL etc

[UPDATE] found, it's ls -Z

GIJack commented 1 year ago

Ahh. Thank you for the update. I appreciate your help on such matters.

gmipf commented 5 months ago

@cosmos72 Do you have any news regarding SELinux contexts and ACLs? I have a Fedora installation on btrfs which needs to be converted to xfs.