diff options
author | Irina Gómez <irinagomez@us.es> | 2019-09-19 10:36:37 +0200 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-09-19 10:36:37 +0200 |
commit | 4d6f8b6aa01682adb27f28d12741b5f0c48843d8 (patch) | |
tree | 06ae0e092eaa170152d490111239b8b5a5df4014 /installer/opengnsys_import.sh | |
parent | ad10ec16eb46fd50ad238038833e0675d01266de (diff) |
#873 opengnsys_import.sh: The names of PXE templates for BIOS are changed for compatibility with UEFI computers.
Diffstat (limited to 'installer/opengnsys_import.sh')
-rwxr-xr-x | installer/opengnsys_import.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/installer/opengnsys_import.sh b/installer/opengnsys_import.sh index b2c14c2a..0197a775 100755 --- a/installer/opengnsys_import.sh +++ b/installer/opengnsys_import.sh @@ -322,6 +322,19 @@ for BOOTLOADER in menu.lst grub; do fi done +if [ -f $OPENGNSYS/tftpboot/menu.lst/templates/01 ]; then + echo " * Cambio del nombre de las plantillas PXE para compatibilidad con UEFI." + BIOSPXEDIR="$OPENGNSYS/tftpboot/menu.lst/templates" + mv $BIOSPXEDIR/01 $BIOSPXEDIR/10 + sed -i s/MBR/1hd/ $BIOSPXEDIR/10 + sed -i s/1hd-1partition/1hd-1os/ $BIOSPXEDIR/11 + sed -i s/1hd-2partition/1hd-2os/ $BIOSPXEDIR/12 + + # Cambiamos el valor en la base de datos. Si no lo hacemos desaparecen de las columnas del NetBootAvanzado. + mysql --defaults-extra-file=$MYCNF -D "$CATALOG" -e "update ordenadores set arranque='10' where arranque='01';" &>/dev/null + [ $? -ne 0 ] && echo "ERROR: Error al modificar nombre de las plantilla '10' en la base de datos." +fi + # Configuración de los clientes echo " * Guardamos la configuración de los clientes." mv $OPENGNSYS/client/etc/engine.cfg $OPENGNSYS/client/etc/engine.cfg-$DATE |