From 2ead1639fd54bcf92d56cf7bf89b8d9cf4d6d24e Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 26 Jun 2020 14:09:36 +0200 Subject: #987 Kill gracefully ogClient When the ogLive boot an OS with kexec, it did not kill gracefully ogClient. This provokes a hanging connection in the ogServer. --- client/engine/Boot.lib | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib index aa77b4f9..376472ec 100755 --- a/client/engine/Boot.lib +++ b/client/engine/Boot.lib @@ -121,6 +121,7 @@ case "$TYPE" in else # Arranque BIOS: configurar kernel Linux con los parámetros leídos de su GRUB. kexec -l "${MNTDIR}${KERNEL}" --append="$APPEND" --initrd="${MNTDIR}${INITRD}" + pkill ogclient kexec -e & fi ;; @@ -153,6 +154,7 @@ case "$TYPE" in # Modo de arranque en caliente (con kexec). cp $OGLIB/grub4dos/* $MNTDIR # */ (Comentario Doxygen) kexec -l $MNTDIR/grub.exe --append=--config-file="root (hd$[$1-1],$[$2-1]); chainloader (hd$[$1-1],$[$2-1])/$LOADER; tpm --init" + pkill ogclient kexec -e & else # Modo de arranque por reinicio (con reboot). -- cgit v1.2.3-18-g5258