[Bug 1498168] Re: update-grub does not detect Windows 10
Antonio Querubin
tony at lavanauts.org
Tue Sep 29 11:55:01 UTC 2015
** Project changed: linuxmint => os-prober (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to os-prober in Ubuntu.
https://bugs.launchpad.net/bugs/1498168
Title:
update-grub does not detect Windows 10
Status in os-prober:
New
Status in os-prober package in Ubuntu:
New
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/os-probes/mounted/20microsoft:
--- ./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=$(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 "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)"
To manage notifications about this bug go to:
https://bugs.launchpad.net/os-prober/+bug/1498168/+subscriptions
More information about the foundations-bugs
mailing list