summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-03-28 12:13:32 +0100
committerIrina Gómez <irinagomez@us.es>2019-03-28 12:13:32 +0100
commitd61c5e5659a4c1ef7cdcfa0fc788b616d6c2cb45 (patch)
tree67aeee2dc932955c5a35a2fe0f11ee9bf80b7023 /client/engine
parent5fd45d159c150abfd1c878f613a43ab9d1cbe610 (diff)
#802 #890 ogGrubInstallMbr detects Windows loader en ESP and saves de ogbootloader into directory 'grub'·
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/Boot.lib17
1 files changed, 2 insertions, 15 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib
index 61e90afe..d98b972f 100755
--- a/client/engine/Boot.lib
+++ b/client/engine/Boot.lib
@@ -846,7 +846,7 @@ if ogIsEfiActive; then
ogFormat $EFIDISK $EFIPART FAT32
EFISECONDSTAGE=$(ogMount $EFIDISK $EFIPART) || ogRaiseError $OG_ERR_PARTITION "ESP" || return $?
fi
- EFISUBDIR=$(printf "Part-%02d-%02d" $DISK $PART)
+ EFISUBDIR="grub"
# Borramos la configuración anterior
[ -d ${EFISECONDSTAGE}/EFI/$EFISUBDIR ] && rm -rf ${EFISECONDSTAGE}/EFI/$EFISUBDIR
mkdir -p ${EFISECONDSTAGE}/EFI/$EFISUBDIR/Boot
@@ -1586,16 +1586,13 @@ function ogBootLoaderDeleteEntry ()
#@version 1.1.1 - Se incluye comentarios en codigo para autodocuemtnacion con Doxygen
#@author Antonio J. Doblas Viso. Universidad de Malaga.
#@date 2018-07-05
-#@version 1.1.1 - UEFI: Es necesario grub.cfg para detectar parametros del kernel. Si no existe se recupera backup temporalmente (ticket #802 #890)
-#@author Irina Gomez, ETSII Universidad de Sevilla
-#@date 2019-03-13
#*/ ##
function ogBurgInstallMbr ()
{
# Variables locales.
-local PART DISK FIRSTAGE SECONSTAGE PREFIXSECONDSTAGE CHECKOS KERNELPARAM BACKUPNAME FILECFG RECOVERBACKUP
+local PART DISK FIRSTAGE SECONSTAGE PREFIXSECONDSTAGE CHECKOS KERNELPARAM BACKUPNAME FILECFG
# Si se solicita, mostrar ayuda.
if [ "$*" == "help" ]; then
@@ -1649,13 +1646,6 @@ fi
#llamada a updateBootCache para que aloje la primera fase del ogLive
updateBootCache
-# Si no existe el fichero grub.cfg pero sí el backup lo recupero (para UEFI)
-if ogIsEfiActive && [ -f ${SECONDSTAGE}/boot/grub/grub.cfg$BACKUPNAME ]; then
- [ -f ${SECONDSTAGE}/boot/grub/grub.cfg ] || mv ${SECONDSTAGE}/boot/grub/grub.cfg$BACKUPNAME ${SECONDSTAGE}/boot/grub/grub.cfg
- RECOVERYBACKUP=TRUE
-fi
-
-
#Configur la sintaxis grub para evitar menus de "recovery" en el OGLive
echo "GRUB_DISABLE_RECOVERY=\"true\"" >> /etc/default/grub
echo "GRUB_DISABLE_LINUX_UUID=\"true\"" >> /etc/default/grub
@@ -1757,9 +1747,6 @@ EOF
#Preparar configuración segunda etapa: crear entrada del sistema operativo
grubSyntax "$KERNELPARAM" >> "$FILECFG"
-# Si hemos recuperado el backup del grub, volvemos a la situación original
-[ "$RECOVERYBACKUP" == TRUE ] && mv ${SECONDSTAGE}/boot/grub/grub.cfg ${SECONDSTAGE}/boot/grub/grub.cfg$BACKUPNAME
-
#Instalar el burg
burg-install --force --root-directory=${SECONDSTAGE} $FIRSTSTAGE 2>&1>/dev/null
}