User Tools

Site Tools


fileservices:fog_clonezilla

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
fileservices:fog_clonezilla [2015/05/06 09:36]
tschulz
fileservices:fog_clonezilla [2015/05/06 09:45]
tschulz
Line 1: Line 1:
-====== Netbooting Clonezilla ​on Fog ======+====== Netbooting Clonezilla ​from Fog iPXE ======
  
-  - Download a Clonezilla ISO+  ​* 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.   
 + 
 +  ​- 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 **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  to **initrd.img** **/​var/​www/​fog/​service/​ipxe/​cz.initrd.img**
Line 7: Line 9:
   - Edit **/​var/​www/​fog/​lib/​fog/​BootMenu.class.php** ~ **line 126** add <file php>'​fog.clonezilla'​ => '​CLonezilla Shell',</​file>​   - Edit **/​var/​www/​fog/​lib/​fog/​BootMenu.class.php** ~ **line 126** add <file php>'​fog.clonezilla'​ => '​CLonezilla Shell',</​file>​
   - Edit **/​var/​www/​fog/​lib/​fog/​BootMenu.class.php** ~ **line 745** and **line 758 (two places)** add <file php>else if ($option == '​fog.clonezilla'​)   - Edit **/​var/​www/​fog/​lib/​fog/​BootMenu.class.php** ~ **line 745** and **line 758 (two places)** add <file php>else if ($option == '​fog.clonezilla'​)
-        $this->​menuOpt($option,​ true); +        $this->​menuOpt($option,​ true);</​file>​ 
- +  - Edit **/​var/​www/​fog/​lib/​fog/​BootMenu.class.php** ~ **line 767** add (be sure to change **ocs_prerun** and the **fetch** argument)<​file php>else if ($option == '​fog.clonezilla'​) 
-</​file>​+{       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";​ 
 +}</​file>​
fileservices/fog_clonezilla.txt · Last modified: 2015/05/06 09:52 by tschulz