summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-14 08:56:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-14 08:56:24 +0000
commit053cb6bcaed204f91792b79bf70b9960a8e0a972 (patch)
tree0da7c8e34d16799b4031d38f7e9d793b328e1bfa /perl-install/diskdrake
parent0c4ccdb8e5ad6531d625439822d0b3eca5b6ca8b (diff)
downloaddrakx-053cb6bcaed204f91792b79bf70b9960a8e0a972.tar
drakx-053cb6bcaed204f91792b79bf70b9960a8e0a972.tar.gz
drakx-053cb6bcaed204f91792b79bf70b9960a8e0a972.tar.bz2
drakx-053cb6bcaed204f91792b79bf70b9960a8e0a972.tar.xz
drakx-053cb6bcaed204f91792b79bf70b9960a8e0a972.zip
- ensure {is_removable} field is there for created partitions, not only existing partitions
- it breaks Create(), fixing
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index a22773bf5..679235d95 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -41,6 +41,7 @@ struct part {
string comment # comment to have in fstab
string volume_label #
+ bool is_removable # is the partition on a removable drive
bool isMounted
bool isFormatted
@@ -498,7 +499,7 @@ sub Create {
put_in_hash($part, fs::type::type_name2subpart($type_name));
$part->{mntpoint} = '' if isNonMountable($part);
$part->{mntpoint} = 'swap' if isSwap($part);
- fs::mount_options::set_default($part);
+ fs::mount_options::set_default($part, ignore_is_removable => 1);
check($in, $hd, $part, $all_hds) or return 1;
$migrate_files = need_migration($in, $part->{mntpoint}) or return 1;