summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-28 14:54:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-28 14:54:38 +0000
commit1db5d687d0039edeba825c650583f8f4fece6f2f (patch)
tree4c425bbcf68bd17a2cd882f9a0d8267696028773 /perl-install/fs.pm
parent4bf70375459a272ee50c0f0fd19112f7ba0de04d (diff)
downloaddrakx-1db5d687d0039edeba825c650583f8f4fece6f2f.tar
drakx-1db5d687d0039edeba825c650583f8f4fece6f2f.tar.gz
drakx-1db5d687d0039edeba825c650583f8f4fece6f2f.tar.bz2
drakx-1db5d687d0039edeba825c650583f8f4fece6f2f.tar.xz
drakx-1db5d687d0039edeba825c650583f8f4fece6f2f.zip
use mkdir_p instead of mkdir
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 4d94586cd..d1d6887d7 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -208,7 +208,7 @@ sub prepare_write_fstab {
part2device($prefix, $_->{device}, $_->{type});
my $real_mntpoint = $_->{mntpoint} || ${{ '/tmp/hdimage' => '/mnt/hd' }}{$_->{real_mntpoint}};
- mkdir_p("$prefix$real_mntpoint", 0755) if $real_mntpoint =~ m|^/|;
+ mkdir_p("$prefix$real_mntpoint") if $real_mntpoint =~ m|^/|;
my $mntpoint = loopback::carryRootLoopback($_) ? '/initrd/loopfs' : $real_mntpoint;
my ($freq, $passno) =
@@ -854,7 +854,7 @@ sub df {
} elsif ($part->{notFormatted} && !$part->{isFormatted}) {
return; #- won't even try!
} else {
- mkdir $dir;
+ mkdir_p($dir);
eval { mount($part->{device}, $dir, type2fs($part), 'readonly') };
if ($@) {
$part->{notFormatted} = 1;