172
edits
Changes
→Vmlinux, initrd and isolinux.cfg: increase initrd size
</pre>
Modify initrd image. More precisely, we need to add OpenVZ kernel modules there
and apply small patch patches to <tt>liblinuxlive</tt> file.Initrd image that goes with Centos 4.4 isof size 40Mb. OpenVZ LiveCD will contain several kernels, so initrd should have several sets ofkernel modules (for each kernel) and 40Mb isn't enough in this case. I created an initrd of size 100Mb.Don't forget to update <tt>ramdisk_size</tt> in <tt>isolinux.cfg</tt> file later! Mount Creating "big" initrdwith original content:
<pre>
# mkdir initrd.d
# cp ovz-livecd/boot/initrd.gz initrd.d/initrd-old.gz
# cd initrd.d/
# mkdir mount-old
# gunzip initrd-old.gz
# mount -o loop initrd-old mount-old/
# dd if=/dev/zero of=initrd bs=1048576 count=100
# mkdir mount
# mount -o loop initrd mount/
# cp -a mount-old/* mount/
# umount mount-old/
# rm -rf mount-old initrd-old
</pre>
Copy modules to initrd: