summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/configureOs
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-04-25 11:22:44 +0200
committerIrina Gómez <irinagomez@us.es>2019-04-25 11:22:44 +0200
commitb0a7050136d336391db2f38718e3f34f4ab9a99f (patch)
tree15bbcac8ca792604897ff2dddcf9c5aa13ec4c71 /client/shared/scripts/configureOs
parent528ff4ca943d3f439d18d6d467c699329bece768 (diff)
#802 #888 If UEFI active, always installs rEFInd and sets it as bootloader (NVRAM) second entry. New Nvram management functions: Add new entry, get and set de next boot entry.
Diffstat (limited to 'client/shared/scripts/configureOs')
-rwxr-xr-xclient/shared/scripts/configureOs5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/shared/scripts/configureOs b/client/shared/scripts/configureOs
index 1ecf8ac9..cf3980db 100755
--- a/client/shared/scripts/configureOs
+++ b/client/shared/scripts/configureOs
@@ -70,9 +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
+ # Si es UEFI copio el cargador de arranque a la partición EFI e instalo rEFInd.
if ogIsEfiActive; then
ogRestoreEfiBootLoader $1 $2
+ ogRefindInstall
else
# Configurar el boot sector de la partición Windows.
ogFixBootSector $1 $2
@@ -94,6 +95,8 @@ case "$OSTYPE" in
ogConfigureFstab $1 $2
## 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.