There are some kb of difference between the files produced by the two
techniques :

79.3 MiB (83,106,001 byte) : find . -print -depth | cpio --create
--format='newc' > ../../initrd.img-5.10.0-18-amd64
79.3 MiB (83,108,291 byte) : find . | cpio --create --format='newc' >
../../initrd.img-5.10.0-18-amd64

Il giorno ven 28 ott 2022 alle ore 10:39 Mario Marietto <
marietto2...@gmail.com> ha scritto:

> If I have understood correctly,is this the correct form ?
>
> find . -print -depth | cpio --create --format='newc' >
> ../../initrd.img-5.10.0-18-amd64
>
>
>
> Il giorno ven 28 ott 2022 alle ore 04:32 Max Nikulin <maniku...@gmail.com>
> ha scritto:
>
>> On 28/10/2022 07:07, Mario Marietto wrote:
>> >
>> > find . | cpio --create
>> I rarely use cpio, but recently there was a thread on tar and unwanted
>> hard links in the created archive. "find" output mixes regular files and
>> directories. If the archiver recursively walks through received
>> directories then result may differ from expectations.
>>
>>
>>
>
> --
> Mario.
>


-- 
Mario.

Reply via email to