Make a bootable iso of a linux server
I have a running CentOS (kernel version 18.104.22.168). I have configured it to act as a Firewall with iptables, snort-inline, zebrad, keepalived etc.
Now I want to make a bootable iso image of the same, so that I can boot other machine using the iso image.
I have already tried using isolinux and grub-install to configure the iso. It is able to boot the vmlinuz and initrd.img file and then is not able to locate the init script. Actually, it cannot find the root file system to boot to.
As far as I could figure out, the initrd.img is a small file system that unloads itself in the RAM, then it tries to find the root file system so that it can complete the boot procedure.
Can anyone please help me to create the root file system keeping all my configurations intact and then finally bind it with the vmlinuz and initrd.img files so that I can create a bootable iso image. I want to provide this iso to my friends/colleagues so that they can also use my firewall and I can develop this project further.
I have been trying quiet hard in vain, without success.
Thanks and Regards,