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
This commit is contained in:
parent
0e7560730a
commit
72b8e53663
@ -1,31 +1,64 @@
|
||||
Index: os-prober/os-probes/mounted/x86/20microsoft
|
||||
===================================================================
|
||||
--- os-prober.orig/os-probes/mounted/x86/20microsoft
|
||||
+++ os-prober/os-probes/mounted/x86/20microsoft
|
||||
From 15dec5c28b77b6db1492e42e25946cd7ae7a7885 Mon Sep 17 00:00:00 2001
|
||||
From: Cyril Brulebois <kibi@debian.org>
|
||||
Date: Fri, 10 Jul 2015 00:59:38 +0200
|
||||
Subject: [PATCH] Add -a flag to grep -qs for Windows Vista detection (Closes:
|
||||
#791383).
|
||||
|
||||
It appears the file isn't always considered as a text file, so this should be
|
||||
more robust. Thanks to Gianluigi Tiesi for the report and the suggestion.
|
||||
---
|
||||
debian/changelog | 9 +++++++++
|
||||
os-probes/mounted/x86/20microsoft | 14 +++++++-------
|
||||
2 files changed, 16 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/debian/changelog b/debian/changelog
|
||||
index 195a3f2..1643099 100644
|
||||
--- a/debian/changelog
|
||||
+++ b/debian/changelog
|
||||
@@ -1,3 +1,12 @@
|
||||
+os-prober (1.66) UNRELEASED; urgency=medium
|
||||
+
|
||||
+ * Add -a flag to grep -qs for Windows Vista detection. It appears the
|
||||
+ file isn't always considered as a text file, so this should be more
|
||||
+ robust. Thanks to Gianluigi Tiesi for the report and the suggestion
|
||||
+ (Closes: #791383).
|
||||
+
|
||||
+ -- Cyril Brulebois <kibi@debian.org> Fri, 10 Jul 2015 00:56:21 +0200
|
||||
+
|
||||
os-prober (1.65) unstable; urgency=medium
|
||||
|
||||
[ Steve McIntyre ]
|
||||
diff --git a/os-probes/mounted/x86/20microsoft b/os-probes/mounted/x86/20microsoft
|
||||
index 6fb3cc5..af83f40 100755
|
||||
--- a/os-probes/mounted/x86/20microsoft
|
||||
+++ b/os-probes/mounted/x86/20microsoft
|
||||
@@ -31,19 +31,19 @@ if item_in_dir -q bootmgr "$2"; then
|
||||
for boot in $(item_in_dir boot "$2"); do
|
||||
bcd=$(item_in_dir bcd "$2/$boot")
|
||||
if [ -n "$bcd" ]; then
|
||||
- if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
|
||||
+ if grep -qs --text "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
|
||||
+ if grep -aqs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
|
||||
long="Windows 8 (loader)"
|
||||
- elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
|
||||
+ elif grep -qs --text "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
|
||||
+ elif grep -aqs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
|
||||
long="Windows 7 (loader)"
|
||||
- elif grep -qs "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
|
||||
+ elif grep -qs --text "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
|
||||
+ elif grep -aqs "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
|
||||
long="Windows Vista (loader)"
|
||||
- elif grep -qs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8. .R.2." "$2/$boot/$bcd"; then
|
||||
+ elif grep -qs --text "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8. .R.2." "$2/$boot/$bcd"; then
|
||||
+ elif grep -aqs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8. .R.2." "$2/$boot/$bcd"; then
|
||||
long="Windows Server 2008 R2 (loader)"
|
||||
- elif grep -qs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8." "$2/$boot/$bcd"; then
|
||||
+ elif grep -qs --text "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8." "$2/$boot/$bcd"; then
|
||||
+ elif grep -aqs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8." "$2/$boot/$bcd"; then
|
||||
long="Windows Server 2008 (loader)"
|
||||
- elif grep -qs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
|
||||
+ elif grep -qs --text "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
|
||||
+ elif grep -aqs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
|
||||
long="Windows Recovery Environment (loader)"
|
||||
- elif grep -qs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
|
||||
+ elif grep -qs --text "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
|
||||
+ elif grep -aqs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
|
||||
long="Windows Recovery Environment (loader)"
|
||||
else
|
||||
long="Windows Vista (loader)"
|
||||
--
|
||||
1.8.5.2
|
||||
|
||||
|
41
os-prober-properly-detect-Windows-10.patch
Normal file
41
os-prober-properly-detect-Windows-10.patch
Normal file
@ -0,0 +1,41 @@
|
||||
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
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 1 07:24:12 UTC 2015 - mchang@suse.com
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 2 15:14:55 UTC 2015 - arvidjaar@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package os-prober
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -54,7 +54,7 @@ Patch13: os-prober-fix-btrfs-subvol-mounted-tests.patch
|
||||
Patch14: os-prober-skip-part-on-multipath.patch
|
||||
# PATCH-FIX-SLE: fix os-prober: dmraid is called without a device list for every partition (bnc#883453)
|
||||
Patch15: os-prober-call-dmraid-once.patch
|
||||
# PATCH-FIX-OPENSUSE: fix os-prober misinterprets Windows 8 to be Vista (bsc#910654)
|
||||
# PATCH-FIX-UPSTREAM: fix os-prober misinterprets Windows 8 to be Vista (bsc#910654)
|
||||
Patch16: os-prober-grep-for-windows-bcd-file.patch
|
||||
# PATCH-FIX-SLE: fix os-prober fails to detect other SLES12 installation (bsc#892364)
|
||||
Patch17: Improve-btrfs-handling-on-os-probing-for-grub2.patch
|
||||
@ -62,6 +62,8 @@ Patch17: Improve-btrfs-handling-on-os-probing-for-grub2.patch
|
||||
Patch18: os-prober-btrfs-absolute-subvol.patch
|
||||
# PATCH-FIX-OPENSUSE: also skip legacy grub if /boot/grub2/grub.cfg is present
|
||||
Patch19: os-prober-40grub-check-grub2.patch
|
||||
# PATCH-FIX-UPSTREAM: fix os-prober is missing support for Windows 10 detection (bsc#947487)
|
||||
Patch20: os-prober-properly-detect-Windows-10.patch
|
||||
Requires: /bin/grep
|
||||
Requires: /bin/sed
|
||||
Requires: /sbin/modprobe
|
||||
@ -102,6 +104,7 @@ cp %{SOURCE1} .
|
||||
%patch17 -p1
|
||||
%patch18 -p1
|
||||
%patch19 -p1
|
||||
%patch20 -p1
|
||||
find . -name \*.orig -delete
|
||||
|
||||
%build
|
||||
|
Loading…
Reference in New Issue
Block a user