summaryrefslogtreecommitdiffstats
path: root/client/engine/Boot.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/Boot.lib')
-rwxr-xr-xclient/engine/Boot.lib6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib
index 3e573acb..47a3ee33 100755
--- a/client/engine/Boot.lib
+++ b/client/engine/Boot.lib
@@ -2717,6 +2717,12 @@ else
[ -d $REFINDDIR ] || ogRaiseError $OG_ERR_NOTFOUND "refind-install or $REFINDDIR" || return $?
cp -r $REFINDDIR $EFIDIR
fi
+# Creamos entrada en NVRAM
+ogNvramAddEntry refind /EFI/refind/grubx64.efi
+# La ponemos en el segundo lugar del orden de arranque
+NUMENTRY=$(efibootmgr |awk '{ if ($2=="refind") print substr($1,5,4)}')
+NEWORDER="$(ogNvramGetOrder|awk -v NEW="$NUNENTRY" '{ gsub(",", " "); printf "%x %x %s\n", $1 ,NEW, substr($0, index($0,$2)) }')"
+ogNvramSetOrder $NEWORDER
# Para la configuraciĆ³n del ogLive
ogMountCache &>/dev/null