[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#547382: Detect windows recovery partitions (fix provided)

I'm not sure if it came that way or if it got changed by the Debian
installer (snapshot from 2009-12-11), but the recovery partition on my
new Thinkpad T500 is type 7 rather than 27. The recovery partition is
also detected as Vista rather than 7, FWIW.

This check along the same lines as the Windows 7 check seems to work for

@@ -21,6 +21,8 @@
    bcd="$(item_in_dir bcd "$2/$boot")"; then
 	if grep -qs "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. .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)"
 		long="Windows Vista (loader)"

Of course, if that generic naming is used then grub-common's
30_os-prober probably has to be updated to match.

Reply to: