From: Dag N. <Dag...@im...> - 2005-01-23 23:55:45
|
Dag Nummedal wrote: > Unpack archive in empty dir: > > cpio -i -d -m -I /tftpboot/pxe/initrd.una > > This directory is missing it's dev directory. It turns out that the > initrd file isn't a single cpio archive, it's 2 concatenated together. > The file misc/devices.txt lists the devices you need. I found that > making a single cpio archive with a dev directory worked fine. > > mkdir dev > grep ^dev /raid/unattended-4.3/linuxboot/misc/devices.txt | > xargs -n 4 mknod > All of the above could be replaced with something like this: cat /root/initrd.una | (cpio -i -d -m ; cpio -i -d -m) I wish I'd thought of that two hours ago :-< -- Dag Nummedal (Dag...@im...) |