From 1916066643be8b9e94ef49a51807508e394b1f90 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 26 Aug 2002 12:11:34 +0000 Subject: (prepare_write_fstab): use mkdir_p instead of mkdir to handle mount points like /mnt/foo/bar (bug reported by David Eastcott) --- perl-install/fs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 9a2a5a950..ab345cf56 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -214,7 +214,7 @@ sub prepare_write_fstab { }; my $real_mntpoint = $_->{mntpoint} || ${{ '/tmp/hdimage' => '/mnt/hd' }}{$_->{real_mntpoint}}; - mkdir("$prefix$real_mntpoint", 0755) if $real_mntpoint =~ m|^/|; + mkdir_p("$prefix$real_mntpoint", 0755) if $real_mntpoint =~ m|^/|; my $mntpoint = loopback::carryRootLoopback($_) ? '/initrd/loopfs' : $real_mntpoint; my ($freq, $passno) = -- cgit v1.2.1