diff options
author | Irina Gómez <irinagomez@us.es> | 2019-11-04 13:58:45 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-11-04 13:58:45 +0100 |
commit | a445889f0eb0200a01954039338fba7f20328ac4 (patch) | |
tree | 8cfd09daaa3cd5b7095db5f69a5f149d75d2b80a /client/shared/scripts/configureOs | |
parent | 082e812e186279d1739fd5d219b54efd64449329 (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-x | client/shared/scripts/configureOs | 9 |
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 - |