====== Netbooting Clonezilla from Fog iPXE ====== * The Following will allow you to netboot clonezilla from the Fog 1.x iPXE service. Keep in mind that you will be modifying the php code for the iPXE menu. In case there is any confusion everything below is done one the fog server - Download a [[http://clonezilla.org/downloads.php|Clonezilla]] ISO - From the ISO in the **/live** dir copy **vmlinuz** to **/var/www/fog/service/ipxe/cz.vmlinuz** - From the ISO in the **/live** dir copy to **initrd.img** **/var/www/fog/service/ipxe/cz.initrd.img** - From the ISO in the **/live** dir copy **filesystem.squashfs** to **/var/www/fog/service/ipxe/cz.filesystem.squashfs** - Edit **/var/www/fog/lib/fog/BootMenu.class.php** ~ **line 126** add 'fog.clonezilla' => 'CLonezilla Shell', - Edit **/var/www/fog/lib/fog/BootMenu.class.php** ~ **line 745** and **line 758 (two places)** add else if ($option == 'fog.clonezilla') $this->menuOpt($option, true); - Edit **/var/www/fog/lib/fog/BootMenu.class.php** ~ **line 767** add (be sure to change **ocs_prerun** and the **fetch** argument)else if ($option == 'fog.clonezilla') { print ":$option\n"; print "kernel cz.vmlinuz\n"; print "initrd cz.initrd.img\n"; print "imgargs cz.vmlinuz boot=live config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" ocs_live_keymap=\"NONE\" ocs_prerun=\"mount -t nfs 10.1.0.81:/home/partimag /home/partimag\" ocs_live_batch=\"no\" ocs_daemonon=\"ssh\" usercrypted=Kb/VNchPYhuf6 ocs_lang=\"\" vga=788 nosplash noprompt fetch=http://fog.sebeka.k12.mn.us/fog/service/ipxe/cz.filesystem.squashfs\n"; print "boot || goto MENU\n"; }