add a directory to initramfs cpio archieve
am 24.08.2007 07:20:49 von Rajat JainHi,
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:
[rajat@qnx-server 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:
[rajat@qnx-server temp]$ cpio -idv
/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 ecartis@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ