On Tue, Mar 21, 2017 at 9:05 AM, Nico Kadel-Garcia <[email protected]> wrote: > On Tue, Mar 21, 2017 at 7:49 AM, Lars Behrens <[email protected]> wrote: >> >> * copy the origin to mounted target device > > How did you "copy the system"? Tar, for example, does not carry along > SELinux permissions. The "star" tool can.
tar has an "--selinux" option. AFAIR, star doesn't preserve contexts in SL5 but it does in SL7 (I can't remember whether the SL6 version does); there is an xattr option for doing so. cpio and rsync don't preserve labels (if the OP used them) but "cp -a" does.
