Re: add a directory to initramfs cpio archieve

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...
But when I try to extract it, it tries to overwrite my host root FS (/etc, /usr etc) which ofcourse I don't want:

[rajat@qnx-server temp]$  cpio -idv <data.cpio
cpio: /lost+found: Operation not permitted
/lost+found
cpio: /bin: Operation not permitted
/bin
The best option I can offer (after reading man cpio) is by using --no-absolute-filenames during copy-in operation. About creating /sys, maybe you can simply create "sys" directory and include that into cpio archieve. Usually, I use midnight commander to dig into cpio archieve, so I rarely know the details on creating and modifying it.

regards,

Mulyadi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux