From 5d05b06d0591c6df06b7a459e589011895b78114 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 26 Nov 2020 14:25:12 +0100 Subject: #1008 Add support to work with GPT tables WebConsole needs to rely on /shell/run to work with GPT tables. Because "Partition and Format"/"Particionar y Formatear" form always supposes that the partition table is MBR/MSDOS. "Setup"/"Configurar" script from "Cloning Engine" also supposes that the partition table is MBR/MSDOS. But it uses "Boot.lib" library, that can create MBR and GTP partitions. This commit: * Adds WebConsole support to work with GPT tables. - Adds input field where the user can select between MSDOS and GPT table types. * Adds "Setup" support to work with GPT tables. - Adds script parameter that expects a string with "MSDOS" or "GPT". --- admin/WebConsole/comandos/jscripts/Configurar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'admin/WebConsole/comandos/jscripts/Configurar.js') diff --git a/admin/WebConsole/comandos/jscripts/Configurar.js b/admin/WebConsole/comandos/jscripts/Configurar.js index 85e94264..bda09401 100644 --- a/admin/WebConsole/comandos/jscripts/Configurar.js +++ b/admin/WebConsole/comandos/jscripts/Configurar.js @@ -240,8 +240,9 @@ function comprobarDatos(cc) var RC="!"; var disco = document.disk.current_numdisk.value; + var table_type = document.getElementById("table_type").value; - atributos="dsk="+disco+"@"+"cfg="; // Inicializa variable global de parámetros del comando + atributos="ttp="+table_type+"@"+"dsk="+disco+"@"+"cfg="; // Inicializa variable global de parámetros del comando if(swc){ -- cgit v1.2.3-18-g5258