Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Modifying initrd image

82 bytes added, 10:48, 28 September 2015
Analyzing init script
We can see that init tries to load modules <code>mptbase.ko</code> and <code>mptscsih.ko</code>.
Check for presense presence of these modules on initrd image:
<pre>
$ ls -1 ./lib/
So they are here... But on the [[Hardware Node|node]] in question there is a device supported by driver in another module:
<code>mtpspimptspi.ko</code>! After adding it to the image and into init script everything should work.
==Creating initrd==
We just have to cpio and gzip directory cpio:
<pre>
$ find ./ | cpio -H newc -o > /boot/new-initrd.imgcpio
1354 blocks
$ cd /boot
$ gzip new-initrd.cpio
$ mv new-initrd.cpio.gz new-initrd.img
</pre>
Next, try to boot your kernel with newly created initrd image,.
==Who create initrd by default?==
Anonymous user