summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-05 19:41:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-05 19:41:42 +0000
commit96e1e09fe5e0535ce05d02a0123c74ae88114d24 (patch)
treefd629051debe0884c2ece4192e6bcf141968a9c5 /perl-install/fsedit.pm
parent92390123c9d622a58206a47306bf87102cc0b1cf (diff)
downloaddrakx-backup-do-not-use-96e1e09fe5e0535ce05d02a0123c74ae88114d24.tar
drakx-backup-do-not-use-96e1e09fe5e0535ce05d02a0123c74ae88114d24.tar.gz
drakx-backup-do-not-use-96e1e09fe5e0535ce05d02a0123c74ae88114d24.tar.bz2
drakx-backup-do-not-use-96e1e09fe5e0535ce05d02a0123c74ae88114d24.tar.xz
drakx-backup-do-not-use-96e1e09fe5e0535ce05d02a0123c74ae88114d24.zip
introduce a new flag: getting_rid_of_readonly_allowed. It is set when the partition table
badly handled by diskdrake, but we are still allowed to wipe the partition table and start with something new.
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 4c2c43316..c262bcd59 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -792,6 +792,7 @@ sub use_proc_partitions {
log::l("using /proc/partitions since diskdrake failed :(");
partition_table::raw::zero_MBR($hd);
$hd->{readonly} = 1;
+ $hd->{getting_rid_of_readonly_allowed} = 1;
$hd->{primary} = { normal => [ grep { $_->{rootDevice} eq $hd->{device} } read_proc_partitions([$hd]) ] };
}