diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-08-05 14:29:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-08-05 14:29:16 +0000 |
commit | 31de738c99ce16ee26595d7bf2d6e9500a5a10b1 (patch) | |
tree | 30cb27258fcac641440869517e35e28f29177eb1 /perl-install/fsedit.pm | |
parent | f093421759947c0e1020139c8b0bdb057105c074 (diff) | |
download | drakx-backup-do-not-use-31de738c99ce16ee26595d7bf2d6e9500a5a10b1.tar drakx-backup-do-not-use-31de738c99ce16ee26595d7bf2d6e9500a5a10b1.tar.gz drakx-backup-do-not-use-31de738c99ce16ee26595d7bf2d6e9500a5a10b1.tar.bz2 drakx-backup-do-not-use-31de738c99ce16ee26595d7bf2d6e9500a5a10b1.tar.xz drakx-backup-do-not-use-31de738c99ce16ee26595d7bf2d6e9500a5a10b1.zip |
no_comment
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 5df4cb109..cee6f88ff 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -443,11 +443,8 @@ sub verifyHds { $hd->{primary} = { normal => [ grep { $hd->{device} eq $_->{rootDevice} } @parts ] }; } } - my $fstab = [ get_fstab(@$hds) ]; - if (is_empty_array_ref($fstab) && $readonly) { - die _("You don't have any partitions!"); - } - ($hds, $fstab, $ok); + $readonly && get_fstab(@$hds) == 0 and die _("You don't have any partitions!"); + $ok; } #-###################################################################################### |