SCIENTIFIC-LINUX-USERS Archives

March 2017

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Tue, 21 Mar 2017 10:03:17 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
On Tue, Mar 21, 2017 at 9:05 AM, Nico Kadel-Garcia <[log in to unmask]> wrote:
> On Tue, Mar 21, 2017 at 7:49 AM, Lars Behrens <[log in to unmask]> 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.

ATOM RSS1 RSS2