summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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