# script uses -R switch for mkinitrd (i'm using soft raid) # script also loads two FS modules: ext2 and ext4 (ext2 for my /boot, and ext4 for the rest) # script should work 'everywhere' without doing any mods (of course if You are using fe. reiserfs - add this module to your img) [root@zonk]:/boot# ./make_img_raid current linux: 3.10.12-smp root on: /dev/md1 root fs type: ext4 [1] 3.10.12-smp [2] 3.10.5-old your choice: 1 running mkinitrd with opts: -R -u -c -k 3.10.12-smp -m ext2:ext4 -f ext4 -r /dev/md1 OK: /lib/modules/3.10.12-smp/kernel/fs/mbcache.ko added. OK: /lib/modules/3.10.12-smp/kernel/fs/ext2/ext2.ko added. OK: /lib/modules/3.10.12-smp/kernel/fs/mbcache.ko added. OK: /lib/modules/3.10.12-smp/kernel/fs/jbd2/jbd2.ko added. OK: /lib/modules/3.10.12-smp/kernel/fs/ext4/ext4.ko added. 23144 blocks /boot/initrd.gz created. Be sure to run lilo again if you use it.