]> code.delx.au - refind/commitdiff
Fixed bug that caused mvrefind to give rEFInd the NVRAM name "rEFInd
authorsrs5694 <srs5694@users.sourceforge.net>
Tue, 26 Jan 2016 19:45:01 +0000 (14:45 -0500)
committersrs5694 <srs5694@users.sourceforge.net>
Tue, 26 Jan 2016 19:45:01 +0000 (14:45 -0500)
Boot Manager" when installing it in the Windows boot manager's
location, rather than the intended "Windows Boot Manager" (to work
around bugs in some EFIs).

mvrefind

index 0c0bf1523d47e641090730b53b4bf0027e10620b..4c2a66f7e48f94ec0e8a8902683d3219cf754546 100755 (executable)
--- a/mvrefind
+++ b/mvrefind
@@ -243,7 +243,7 @@ AddNvramEntry() {
    fi
 
    if [[ $InstallIt == "1" ]] ; then
-      if [[ $EfiTargetDir == "/efi/microsoft/boot" ]] ; then
+      if [[ $EspTargetDir == "/efi/microsoft/boot" ]] ; then
          # Name it the way some firmware expects -- see http://mjg59.dreamwidth.org/20187.html
          $Efibootmgr -c -l $EfiEntryFilename -L "Windows Boot Manager" -d $InstallDisk -p $PartNum &> /dev/null
       else