Hello. Both these commands :

# find . -print -depth | cpio --create --format='newc' > ../../i
nitrd.img-5.19.0-15.2-liquorix-amd64

# find . | cpio --create --format='newc' > ../../initrd.img-5.10.0-18-amd64

produce this warning :

find: warning: you have specified the global option -depth after the
argument -print, but global options are not positional, i.e., -depth
affects tests specified before it as well as those specified after it.
Please specify global options before other arguments.

It is a warning,not an error. But why does it happens ? Can I "fx" it ?


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

> 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.
>


-- 
Mario.

Reply via email to