Skip to contentSkip to conversation

Minor FAQ change

PATCH Ge van Geldorp 1 participant 1 message Apr 20, 2005

lore
Share & tools
lore
#0 lore raw

When following the instructions in 3.7 of the FAQ at
http://www.cl.cam.ac.uk/Research/SRG/netos/xen/faq.html to modify a FC3 initrd the new initrd image would get ignored during boot. It turns out that the initrd image needs to be in portable cpio format (-c flag) at least for FC3 and I expect for most other distributions using cpio initrds too.

I've added a diff below, which probably isn't of much use 'cause the source of the page says it's generated from a template.

Ge van Geldorp.

faq.html renamed from faq.html.orig +2 -2
@@ -388,9 +388,9 @@
 <PRE>
 # mkdir initrd.mnt
 # gzip -d -S ".img" /path/to/initrd.img
-# mount -o loop /path/to/initrd initrd.mnt <b>OR</b> (cd initrd.mnt && cpio -i <../path/to/initrd)
+# mount -o loop /path/to/initrd initrd.mnt <b>OR</b> (cd initrd.mnt && cpio -ic <../path/to/initrd)
 # ...edit files in directory initrd.mnt....
-# umount initrd.mnt <b>OR</b> (cd initrd.mnt && find . | cpio -o --quiet >../path/to/initrd)
+# umount initrd.mnt <b>OR</b> (cd initrd.mnt && find . | cpio -oc --quiet >../path/to/initrd)
 # gzip -9 -S ".img" /path/to/initrd
 </PRE>
 If you use cpio then you may get warnings about truncated inode numbers.