From a4f15eb8ae97a9bc83901baab6fcff7ca31d73a6 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Wed, 6 Nov 2019 12:58:52 +0100 Subject: #802 #888 ogGrubInstallMbr in UEFI computers: NVRAM entry for 'grub' is better detected, avoiding errors. --- client/engine/Boot.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib index 1937051c..0f044cc3 100755 --- a/client/engine/Boot.lib +++ b/client/engine/Boot.lib @@ -896,7 +896,7 @@ if ogIsEfiActive; then # Creamos entrada NVRAM y la ponemos en segundo lugar ogNvramAddEntry grub /EFI/grub/Boot/shimx64.efi - GRUBENTRY=$(ogNvramList| awk '/grub/ {print $1}') + GRUBENTRY=$(ogNvramList| awk '{if ($2=="grub") print $1}') NEWORDER="$(ogNvramGetOrder|awk -v ENTRY=$GRUBENTRY '{gsub(",", " "); printf "%x %x %s\n", $1 , ENTRY , substr($0, index($0,$2))}')" ogNvramSetOrder $NEWORDER fi -- cgit v1.2.3-18-g5258