summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 2d182e3bb..f8b304651 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -996,6 +996,13 @@ sub suggest {
} elsif (arch() !~ /ia64/) {
#- search for dos (or windows) boot partition. Do not look in extended partitions!
my @windows_boot_parts =
+ grep {
+ my $handle = any::inspect($_, $::prefix);
+ my $dir = $handle && $handle->{dir};
+ my @root_files = map { lc($_) } all($dir);
+ log::l("found the following files on potential windows partition $_->{device}: " . join(' ', @root_files));
+ intersection(\@root_files, [ "windows", "winnt" ]);
+ }
grep { isFat_or_NTFS($_) && member(fs::type::fs_type_from_magic($_), 'vfat', 'ntfs')
&& fs::type::part2type_name($_) !~ /^Hidden/;
}