grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: grub-devel@gnu.org
Subject: [PATCH] util/grub.d/30_os-prober.in: Skip drivemap for Windows 8 to 19, Server 2012 and later
Date: Sat, 6 Jan 2024 16:35:57 +0100	[thread overview]
Message-ID: <71af3e39-1770-4ee6-a3ae-15334191e42a@plouf.fr.eu.org> (raw)

If Windows Vista, Seven and Server 2008 do not need drivemap,
then later versions using bootmgr too should not need it either.

Note:
This patch checks Windows versions up to 19 because distinguishing 20
from 2000 requires more complex logic. Hopefully Windows will drop
BIOS/legacy boot support before version 20.

Signed-off-by: Pascal Hambourg <pascal@plouf.fr.eu.org>
---
  util/grub.d/30_os-prober.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
index 656301eaf..8e5cbb50e 100644
--- a/util/grub.d/30_os-prober.in
+++ b/util/grub.d/30_os-prober.in
@@ -167,7 +167,7 @@ EOF
        fi

        case ${LONGNAME} in
-	Windows\ Vista*|Windows\ 7*|Windows\ Server\ 2008*)
+	Windows\ Vista*|Windows\ [781]*|Windows\ Server\ 2008*|Windows\ Server\ 20[1-9]*)
  	;;
  	*)
  	  cat << EOF
-- 
2.30.2

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

             reply	other threads:[~2024-01-06 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-06 15:35 Pascal Hambourg [this message]
2024-01-17  3:17 ` [PATCH] util/grub.d/30_os-prober.in: Skip drivemap for Windows 8 to 19, Server 2012 and later Vladimir 'phcoder' Serbinenko
2024-01-17 12:44   ` Pascal Hambourg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=71af3e39-1770-4ee6-a3ae-15334191e42a@plouf.fr.eu.org \
    --to=pascal@plouf.fr.eu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).