os-prober/os-prober-properly-detect-Windows-10.patch
Andrei Borzenkov 72b8e53663 Accepting request 335138 from home:michael-chang:branches:Base:System
- replace os-prober-grep-for-windows-bcd-file.patch by upstream's version
  * modified os-prober-grep-for-windows-bcd-file.patch
- include patch from upstream to fix os-prober is missing support for
  Windows 10 (bsc#947487)
  * added os-prober-properly-detect-Windows-10.patch

OBS-URL: https://build.opensuse.org/request/show/335138
OBS-URL: https://build.opensuse.org/package/show/Base:System/os-prober?expand=0&rev=60
2015-10-01 09:15:43 +00:00

42 lines
1.8 KiB
Diff

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