summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/configureOs
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-11-04 13:58:45 +0100
committerIrina Gómez <irinagomez@us.es>2019-11-04 13:58:45 +0100
commita445889f0eb0200a01954039338fba7f20328ac4 (patch)
tree8cfd09daaa3cd5b7095db5f69a5f149d75d2b80a /client/shared/scripts/configureOs
parent082e812e186279d1739fd5d219b54efd64449329 (diff)
#802 #888 On UEFI computers, OpenGnsys installs grub to boot from the hard drive. You can use the rEFInd template example for computers without SecureBoot.
Diffstat (limited to 'client/shared/scripts/configureOs')
-rwxr-xr-xclient/shared/scripts/configureOs9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/shared/scripts/configureOs b/client/shared/scripts/configureOs
index 2e529c9e..3f39c235 100755
--- a/client/shared/scripts/configureOs
+++ b/client/shared/scripts/configureOs
@@ -70,10 +70,10 @@ case "$OSTYPE" in
# Cambiar nombre en sistemas Windows.
HOST=${HOST:-"pc"}
ogSetWindowsName $1 $2 "$HOST"
- # Si es UEFI copio el cargador de arranque a la partición EFI e instalo rEFInd.
+ # Si es UEFI copio el cargador de arranque a la partición EFI e instalo Grub.
if ogIsEfiActive; then
ogRestoreEfiBootLoader $1 $2
- ogRefindInstall
+ ogGrubInstallMbr $(ogGetEsp) TRUE
else
# Configurar el boot sector de la partición Windows.
ogFixBootSector $1 $2
@@ -93,10 +93,10 @@ case "$OSTYPE" in
Linux) # Postconfiguración de GNU/Linux.
# Configuro fstab: particion de Swap y si es UEFI además la partición EFI.
ogConfigureFstab $1 $2
+ # Si es UEFI instalo Grub en la partición EFI
+ ogIsEfiActive && ogGrubInstallMbr $(ogGetEsp) TRUE
## Instala (no configura) el codigo de arranque del Grub en la partición (no lo configura, se mantiene el original de la imagen)
ogGrubInstallPartition $1 $2
- # Si es UEFI instalo rEFInd.
- ogIsEfiActive && ogRefindInstall
# Eliminar el antiguo cliente de Linux.
[ -n "$(find $MNTDIR/usr/sbin $MNTDIR/sbin $MNTDIR/usr/local/sbin -name ogAdmLnxClient -print)" ] && ogUninstallLinuxClient $1 $2
# Configurar nuevo agente OGAgent.
@@ -173,4 +173,3 @@ EOT
;;
esac
exit 0
-