]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/grub/localboot.cfg
1.0.27 release
[Ventoy.git] / INSTALL / grub / localboot.cfg
index ff834169778ae81d4d52a4c6c6d926e31b23cbbf..8400886527d9bbe6a70d9e6f0c8164ea2deca1ff 100644 (file)
@@ -21,7 +21,12 @@ if [ "$grub_platform" = "pc" ]; then
         if search -n -s -f /Boot/BCD; then
             for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
                 if [ -f /$bt ]; then
-                    ntldr /$bt
+                    if regexp '^hd0' $root; then
+                        ntldr /$bt
+                    else
+                        drivemap -s hd0 $root
+                        ntldr /$bt
+                    fi
                     break
                 fi
             done