[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2] util/grub.d/30_os-prober.in: Skip drivemap for Windows 8 to 1
From: |
Pascal Hambourg |
Subject: |
[PATCH v2] util/grub.d/30_os-prober.in: Skip drivemap for Windows 8 to 19, Server 2012 and later |
Date: |
Fri, 19 Jan 2024 16:00:45 +0100 |
User-agent: |
Mozilla Thunderbird |
If Windows Vista, Seven and Server 2008 do not need drivemap,
then later versions using bootmgr should not need it either.
This patch checks Windows versions up to 19 because distinguishing 20
from 2000 requires more complex logic. Hopefully Windows will drop
legacy BIOS boot support before version 20.
Signed-off-by: Pascal Hambourg <pascal@plouf.fr.eu.org>
---
v2:
- Harden the version check to exclude Windows 1.* (even though
os-prober does not detect it)
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..043e5dfea 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\ [78]*|Windows\ 1[0-9]*|Windows\ Server\
2008*|Windows\ Server\ 20[1-9]*)
;;
*)
cat << EOF
--
2.30.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH v2] util/grub.d/30_os-prober.in: Skip drivemap for Windows 8 to 19, Server 2012 and later,
Pascal Hambourg <=