summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/format.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-05 19:34:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-05 19:34:44 +0000
commitfcc4ef31243b9e51adb718862d03762221bb37c2 (patch)
tree2e3ab26af93f802c02b20bc081f6235635817436 /perl-install/fs/format.pm
parent243305d3fdcc29ff8d8cf33ae8770700e18cdd0b (diff)
downloaddrakx-fcc4ef31243b9e51adb718862d03762221bb37c2.tar
drakx-fcc4ef31243b9e51adb718862d03762221bb37c2.tar.gz
drakx-fcc4ef31243b9e51adb718862d03762221bb37c2.tar.bz2
drakx-fcc4ef31243b9e51adb718862d03762221bb37c2.tar.xz
drakx-fcc4ef31243b9e51adb718862d03762221bb37c2.zip
don't allow partition types we don't know how to format in {partitions} for auto_installs (eg of bad type: ntfs)
Diffstat (limited to 'perl-install/fs/format.pm')
-rw-r--r--perl-install/fs/format.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm
index 3b04bba56..bbeeed2f0 100644
--- a/perl-install/fs/format.pm
+++ b/perl-install/fs/format.pm
@@ -26,6 +26,11 @@ sub package_needed_for_partition_type {
$l->[0];
}
+sub known_type {
+ my ($part) = @_;
+ to_bool($cmds{$part->{fs_type}});
+}
+
sub check_package_is_installed {
my ($do_pkgs, $fs_type) = @_;