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

Bug#634649: os-prober does not detect Windows if there is a /boot folder in the Windows partition

On Tue, Jul 19, 2011 at 11:21, yannubuntu@gmail.com
<yannubuntu@gmail.com> wrote:
> If the Windows partition contains a /boot/grub/core.img folder (this occurs
> when beginners install GRUB by mistake in the Windows partition), os-prober
> won't detect Windows any more.

Is it possible for you to try to apply this patch and test it again?

Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
diff --git a/os-probes/mounted/x86/20microsoft b/os-probes/mounted/x86/20microsoft
index cb574ec..9c35ca4 100755
--- a/os-probes/mounted/x86/20microsoft
+++ b/os-probes/mounted/x86/20microsoft
@@ -17,7 +17,7 @@ case "$type" in
 # Vista (previously Longhorn)
-if item_in_dir -q bootmgr "$2" && boot="$(item_in_dir boot "$2")" &&
+if item_in_dir -q bootmgr "$2" && boot="$(item_in_dir boot/ "$2")" &&
    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)"

Reply to: