update-grub does not detect Windows 10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned | ||
os-prober (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running Linux Mint 17.2
update-grub uses os-prober to detect Windows versions but currently detects Windows 10 as Windows Recovery Environment . The patch below fixes this.
Patch for /usr/lib/
--- ./20microsoft 2015/09/21 19:22:31 1.1
+++ ./20microsoft 2015/09/21 19:38:21
@@ -31,7 +31,9 @@
for boot in $(item_in_dir boot "$2"); do
bcd=
if [ -n "$bcd" ]; then
- if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
+ if grep -qs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then
+ long="Windows 10 (loader)"
+ elif grep -qs "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
long="Windows 7 (loader)"
affects: | linuxmint → os-prober (Ubuntu) |
affects: | os-prober → linuxmint |
Changed in os-prober (Ubuntu): | |
status: | New → Confirmed |
Running update-grub:
Expected result:
Found Windows 10 (loader) on /dev/sda1
Actual result:
Found Windows Recovery Environment (loader) on /dev/sda1