Hi,

I have a kernel image (2.6.16) that is booting fine. It came with an initramfs 
cpio archieve that doesnot contain the /sys directory and hence sysfs is not 
accessible (initramfs continues as root FS in my case, even after system boots 
up). So how do I add /sys directory to my cpio archieve? I know it sounds 
stupid, but but here it is:

I am able to see the contents of cpio:

[EMAIL PROTECTED] temp]$ cpio -itv < data.cpio
drwxrwxrwx   2 root     root            0 May 25  2006 /lost+found
drwxrwxrwx   2 root     root            0 May 25  2006 /bin
-rwxrwxrwx   1 rajat    root        19000 May 19  2002 /bin/basename
-rwxrwxrwx   1 rajat    root       968064 May 16  2002 /bin/bash
...
...
...

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

[EMAIL PROTECTED] temp]$  cpio -idv <data.cpio
cpio: /lost+found: Operation not permitted
/lost+found
cpio: /bin: Operation not permitted
/bin
cpio: /bin/basename not created: newer or same age version exists
/bin/basename
cpio: /bin/bash not created: newer or same age version exists
/bin/bash
cpio: /bin/cat not created: newer or same age version exists
/bin/cat
...
...
...

Any help?

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to