diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-14 08:56:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-14 08:56:24 +0000 |
commit | 053cb6bcaed204f91792b79bf70b9960a8e0a972 (patch) | |
tree | 0da7c8e34d16799b4031d38f7e9d793b328e1bfa /perl-install/fs | |
parent | 0c4ccdb8e5ad6531d625439822d0b3eca5b6ca8b (diff) | |
download | drakx-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/fs')
-rw-r--r-- | perl-install/fs/mount_options.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm index 1ce622721..c7baa4e7b 100644 --- a/perl-install/fs/mount_options.pm +++ b/perl-install/fs/mount_options.pm @@ -160,11 +160,11 @@ sub rationalize { sub set_default { my ($part, %opts) = @_; - #- opts are: useSupermount security iocharset codepage + #- opts are: useSupermount security iocharset codepage ignore_is_removable my ($options, $unknown) = &unpack($part); - if ($part->{is_removable} && !member($part->{mntpoint}, qw(/ /usr /var /boot))) { + if (!$opts{ignore_is_removable} && $part->{is_removable} && !member($part->{mntpoint}, qw(/ /usr /var /boot))) { $options->{supermount} = $opts{useSupermount} && !($opts{useSupermount} eq 'magicdev' && $part->{media_type} eq 'cdrom'); $part->{fs_type} = !$options->{supermount} ? 'auto' : $part->{media_type} eq 'cdrom' ? 'udf:iso9660' : 'ext2:vfat'; |