06d68ed81f
- add os-prober-grep-for-windows-bcd-file.patch * fix os-prober misinterprets Windows 8 to be Vista (bsc#910654) OBS-URL: https://build.opensuse.org/request/show/282818 OBS-URL: https://build.opensuse.org/package/show/Base:System/os-prober?expand=0&rev=49
32 lines
1.8 KiB
Diff
32 lines
1.8 KiB
Diff
Index: os-prober/os-probes/mounted/x86/20microsoft
|
|
===================================================================
|
|
--- os-prober.orig/os-probes/mounted/x86/20microsoft
|
|
+++ os-prober/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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
long="Windows Recovery Environment (loader)"
|
|
else
|
|
long="Windows Vista (loader)"
|