SHA256
1
0
forked from pool/os-prober
os-prober/os-prober-properly-detect-Windows-10.patch

42 lines
1.8 KiB
Diff
Raw Normal View History

From 1643858767dda87140201d7ff0e0f3857b8bbf25 Mon Sep 17 00:00:00 2001
From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
Date: Mon, 21 Sep 2015 10:36:00 -0400
Subject: [PATCH] os-probes/mounted/x86/20microsoft: properly detect Windows 10
installs. Thanks to David Martin for the patch.
---
debian/changelog | 7 +++++++
os-probes/mounted/x86/20microsoft | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
Index: os-prober/os-probes/mounted/x86/20microsoft
===================================================================
--- os-prober.orig/os-probes/mounted/x86/20microsoft 2015-10-01 17:04:58.708069823 +0800
+++ os-prober/os-probes/mounted/x86/20microsoft 2015-10-01 17:05:59.072069823 +0800
@@ -31,7 +31,9 @@
for boot in $(item_in_dir boot "$2"); do
bcd=$(item_in_dir bcd "$2/$boot")
if [ -n "$bcd" ]; then
- if grep -aqs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
+ if grep -aqs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then
+ long="Windows 10 (loader)"
+ elif grep -aqs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
long="Windows 8 (loader)"
elif grep -aqs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
long="Windows 7 (loader)"
Index: os-prober/debian/changelog
===================================================================
--- os-prober.orig/debian/changelog 2015-10-01 17:04:58.708069823 +0800
+++ os-prober/debian/changelog 2015-10-01 17:04:58.752069823 +0800
@@ -1,3 +1,10 @@
+os-prober (1.67) UNRELEASED; urgency=medium
+
+ * os-probes/mounted/x86/20microsoft: properly detect Windows 10 installs.
+ Thanks to David Martin for the patch.
+
+ -- Mathieu Trudel-Lapierre <mathieu.tl@gmail.com> Mon, 21 Sep 2015 10:34:29 -0400
+
os-prober (1.66) UNRELEASED; urgency=medium
* Add -a flag to grep -qs for Windows Vista detection. It appears the