summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-01 12:17:06 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-01 12:17:06 +0000
commit10b7f82842575257022ce357ebe87ca2dfc325f9 (patch)
tree3b0371da14315ce07337120fc71558e4fa85843f /perl-install
parent96e5a55effea8401745df9d6ccff014ec5e46473 (diff)
downloaddrakx-10b7f82842575257022ce357ebe87ca2dfc325f9.tar
drakx-10b7f82842575257022ce357ebe87ca2dfc325f9.tar.gz
drakx-10b7f82842575257022ce357ebe87ca2dfc325f9.tar.bz2
drakx-10b7f82842575257022ce357ebe87ca2dfc325f9.tar.xz
drakx-10b7f82842575257022ce357ebe87ca2dfc325f9.zip
(use_windows) space cleanup
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/tools.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 2c2bbb3a5..6d49fc48e 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -153,7 +153,7 @@ sub use_windows {
fs::get_info_from_fstab($all_hds, '');
my $part = find { $_->{device_windobe} eq 'C' } fsedit::get_fstab(@{$all_hds->{hds}});
$part or my $failed = N("No partition available");
- my $source = find { -d $_ && -e "$_/$file" } map { "$part->{mntpoint}/$_" } qw(windows/system winnt/system windows/system32/drivers winnt/system32/drivers);
+ my $source = find { -d $_ && -r "$_/$file" } map { "$part->{mntpoint}/$_" } qw(windows/system winnt/system windows/system32/drivers winnt/system32/drivers);
log::explanations($failed || "Seek in $source to find firmware");
return $source, $failed;
@@ -173,6 +173,7 @@ sub use_floppy {
sub is_dynamic_ip {
my ($intf) = @_;
+ print "called from\n", common::backtrace(), "\n";
any { $_->{BOOTPROTO} !~ /^(none|static|)$/ } values %$intf;
}