diff options
author | Irina Gómez <irinagomez@us.es> | 2019-11-06 12:58:52 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-11-06 12:58:52 +0100 |
commit | a4f15eb8ae97a9bc83901baab6fcff7ca31d73a6 (patch) | |
tree | da840e76377f786d698e6441f3b56771ca9d57a5 /client | |
parent | bc0ad31b6a693db39655ffcd06aa0f549e53c52e (diff) |
#802 #888 ogGrubInstallMbr in UEFI computers: NVRAM entry for 'grub' is better detected, avoiding errors.
Diffstat (limited to 'client')
-rwxr-xr-x | client/engine/Boot.lib | 2 |
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 |