source: open-sysclone/trunk/fuentes/open-sysclone-server.install/usr/share/n4d/templates/OpenSysClone/RestoreImageUnicast.tpl @ 6572

Last change on this file since 6572 was 6572, checked in by daduve, 3 years ago

Updating tpl for pxe menu with new clonezilla in open-sysclone-system

File size: 1.5 KB
Line 
1<?php
2
3// Adding in PXE Menu OpenSysClone Restore Image in HDD local from server, unicast mode
4
5$MenuEntryList=array();
6$MenuEntry=new stdClass();
7$MenuEntry->id="opensysclone";
8$MenuEntry->label="OSC: Restaurar Imagen {{ NAME_FILE }}";
9$MenuEntry->menuString='LABEL Restaurar Imagen {{ NAME_FILE }}
10MENU LABEL OpenSysClone: Restaurar Imagen {{ NAME_FILE }}
11KERNEL opensysclone-system/vmlinuz
12APPEND initrd=opensysclone-system/initrd.img boot=live union=overlay config noswap noprompt vga=788 ip=frommedia ethdevice-timeout=60 fetch={{ OPENSYSCLONE_SQUASHFS_PROTOCOL }}://{{ SRV_IP }}/{{ PATH_SQUASHFS }}/filesystem.squashfs ocs_prerun1="dhclient -v eth0" ocs_prerun2="mount -t nfs {{ SRV_IP }}:{{ PATH_FILE }} /home/partimag" ocs_prerun3="busybox tftp -g -r /opensysclone-system/testservermount.sh -l /tmp/testservermount.sh {{ SRV_IP }}" ocs_prerun4="bash /tmp/testservermount.sh" ocs_prerun5="sleep 5" ocs_prerun6="busybox tftp -g -r /opensysclone-system/{{ HOST_OPERATION }} -l /tmp/ejecuta.sh {{ SRV_IP }}" ocs_prerun7="bash /tmp/ejecuta.sh" ocs_live_run="ocs-sr -g auto -e1 auto -e2  -r -j2 -p command restoredisk {{ NAME_FILE }} {{ HDD_DISK }}" ocs_postrun1="busybox tftp -g -r /opensysclone-system/hostnamerestore.sh -l /tmp/ejecuta.sh {{ SRV_IP }}" ocs_postrun2="bash /tmp/ejecuta.sh ; {{  FINAL_ACTION }}" keyboard-layouts=NONE ocs_live_batch="no" locales="es_ES.UTF-8" nolocales';
13array_push($MenuEntryList, $MenuEntry);
14
15// "Return" MenuEntryListObject
16$MenuEntryListObject=$MenuEntryList;
17
18?>
Note: See TracBrowser for help on using the repository browser.