|
|
e8c52d |
From 723a35738d00b6ed46a9c298301e0dc6dfa78f2f Mon Sep 17 00:00:00 2001
|
|
|
e8c52d |
From: Cyril Brulebois <kibi@debian.org>
|
|
|
e8c52d |
Date: Thu, 8 Oct 2015 14:25:56 +0200
|
|
|
e8c52d |
Subject: [PATCH 17/18] Add Windows 10 detection support (#1322956)
|
|
|
e8c52d |
|
|
|
e8c52d |
------------------------------------------------------------------------
|
|
|
e8c52d |
Add support for Windows 10 (Closes: #801278).
|
|
|
e8c52d |
|
|
|
e8c52d |
It was previously reported as Windows Recovery Environment.
|
|
|
e8c52d |
|
|
|
e8c52d |
Thanks, Philipp Wolfer!
|
|
|
e8c52d |
------------------------------------------------------------------------
|
|
|
e8c52d |
(cherry picked from commit cb4370f2678de0b99171ffeac3cd67402271ce2e)
|
|
|
e8c52d |
|
|
|
e8c52d |
Resolves: rhbz#1322956
|
|
|
e8c52d |
---
|
|
|
e8c52d |
os-probes/mounted/x86/20microsoft | 4 +++-
|
|
|
e8c52d |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
e8c52d |
|
|
|
e8c52d |
diff --git a/os-probes/mounted/x86/20microsoft b/os-probes/mounted/x86/20microsoft
|
|
|
e8c52d |
index ca255d8..668bb4e 100755
|
|
|
e8c52d |
--- a/os-probes/mounted/x86/20microsoft
|
|
|
e8c52d |
+++ b/os-probes/mounted/x86/20microsoft
|
|
|
e8c52d |
@@ -31,7 +31,9 @@ if item_in_dir -q bootmgr "$2"; then
|
|
|
e8c52d |
for boot in $(item_in_dir boot "$2"); do
|
|
|
e8c52d |
bcd=$(item_in_dir bcd "$2/$boot")
|
|
|
e8c52d |
if [ -n "$bcd" ]; then
|
|
|
e8c52d |
- if grep -aqs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
|
|
|
e8c52d |
+ if grep -aqs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then
|
|
|
e8c52d |
+ long="Windows 10 (loader)"
|
|
|
e8c52d |
+ elif grep -aqs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
|
|
|
e8c52d |
long="Windows 8 (loader)"
|
|
|
e8c52d |
elif grep -aqs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
|
|
|
e8c52d |
long="Windows 7 (loader)"
|
|
|
e8c52d |
--
|
|
|
e8c52d |
2.5.5
|
|
|
e8c52d |
|