Use existing initrd.img from /boot or create one
Using
Mkinitrd myinitrd.img <uname –r>
- Extract the above initrd file using
gzip -dc initrd.img | cpio -idv
- the initrd is whole filesystem
- init file is the script that runs and finally mounts real filesystem
- Put your statement here.
Eg. Echo “welcome alok”
6.then again pack it using
find . | cpio -H newc -o > ../initramfs.cpio
7.compress
Cd ..
Gzip -9 initramfs.cpio
Cp to /boot
And make necessary changes in grub.conf
Note :No limit as such in size of initramfs,
Put fsarchiver in that.
Nash is simlar to busybox containing scripts in it
No comments:
Post a Comment