summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/readonly.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-18 12:47:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-18 12:47:50 +0000
commit65ace13dc9c5de248e0d75d6e2076f640793528e (patch)
tree44b281e4a4b16f06834d72e7482e3cf38ebe3e9b /perl-install/partition_table/readonly.pm
parent157c064c16a05e562cc865788faa9848f3c31d53 (diff)
downloaddrakx-65ace13dc9c5de248e0d75d6e2076f640793528e.tar
drakx-65ace13dc9c5de248e0d75d6e2076f640793528e.tar.gz
drakx-65ace13dc9c5de248e0d75d6e2076f640793528e.tar.bz2
drakx-65ace13dc9c5de248e0d75d6e2076f640793528e.tar.xz
drakx-65ace13dc9c5de248e0d75d6e2076f640793528e.zip
create partition_table::readonly and use it
Diffstat (limited to 'perl-install/partition_table/readonly.pm')
-rw-r--r--perl-install/partition_table/readonly.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/perl-install/partition_table/readonly.pm b/perl-install/partition_table/readonly.pm
new file mode 100644
index 000000000..c0d483aaf
--- /dev/null
+++ b/perl-install/partition_table/readonly.pm
@@ -0,0 +1,20 @@
+package partition_table::readonly; # $Id: $
+
+use diagnostics;
+use strict;
+
+our @ISA = qw(partition_table::raw);
+
+use common;
+use partition_table::raw;
+use fs::type;
+use lvm;
+
+sub initialize {
+ my ($class, $hd, $parts) = @_;
+
+ $hd->{readonly} = $hd->{getting_rid_of_readonly_allowed} = 1;
+ $hd->{primary}{normal} = $parts;
+
+ bless $hd, $class;
+}