summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-11-06 12:58:52 +0100
committerIrina Gómez <irinagomez@us.es>2019-11-06 12:58:52 +0100
commita4f15eb8ae97a9bc83901baab6fcff7ca31d73a6 (patch)
treeda840e76377f786d698e6441f3b56771ca9d57a5 /client/engine
parentbc0ad31b6a693db39655ffcd06aa0f549e53c52e (diff)
#802 #888 ogGrubInstallMbr in UEFI computers: NVRAM entry for 'grub' is better detected, avoiding errors.
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/Boot.lib2
1 files changed, 1 insertions, 1 deletions
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