Add support for Windows 10 (Closes: #801278).
authorCyril Brulebois <kibi@debian.org>
Thu, 8 Oct 2015 12:25:56 +0000 (14:25 +0200)
committerCyril Brulebois <kibi@debian.org>
Thu, 8 Oct 2015 12:26:05 +0000 (14:26 +0200)
It was previously reported as Windows Recovery Environment.

Thanks, Philipp Wolfer!

debian/changelog
os-probes/mounted/x86/20microsoft

index 055093c..befc027 100644 (file)
@@ -2,6 +2,8 @@ os-prober (1.68) UNRELEASED; urgency=medium
 
   * Adjust extended dos partition support for blkid/util-linux 2.24+,
     thanks to Andreas Henriksson (Closes: #735169).
+  * Add support for Windows 10 (otherwise reported as Windows Recovery
+    Environment). Thanks, Philipp Wolfer! (Closes: #801278).
 
  -- Cyril Brulebois <kibi@debian.org>  Thu, 08 Oct 2015 02:30:41 +0200
 
index af83f40..1416ddc 100755 (executable)
@@ -31,7 +31,9 @@ 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 -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)"