summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-26 12:15:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-26 12:15:58 +0000
commitb8ca72440736262654b5998978c4c0b15a7e795c (patch)
treedc4432d242abbacd9c29ca764f7d457251a842b0
parent136ad7b5d783f662f1c9c281ea01c135fadc72ea (diff)
downloaddrakx-b8ca72440736262654b5998978c4c0b15a7e795c.tar
drakx-b8ca72440736262654b5998978c4c0b15a7e795c.tar.gz
drakx-b8ca72440736262654b5998978c4c0b15a7e795c.tar.bz2
drakx-b8ca72440736262654b5998978c4c0b15a7e795c.tar.xz
drakx-b8ca72440736262654b5998978c4c0b15a7e795c.zip
use fs=ext2:vfat or fs=udf:iso9600 for supermount (it needs supermount-ng)
-rw-r--r--perl-install/fs.pm15
1 files changed, 9 insertions, 6 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 82e1de841..330baf1b1 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -256,6 +256,10 @@ sub prepare_write_fstab {
my @l2 = difference2(\@l, \@l1);
$options = join(",", "dev=$dev", "fs=$type", @l1, if_(@l2, '--', @l2));
($dev, $type) = ('none', 'supermount');
+ } else {
+ #- if we were using supermount, the type could be something like ext2:vfat
+ #- but this can't be done without supermount, so switching to "auto"
+ $type = 'auto' if $type =~ /:/;
}
[ $mntpoint, $_->{comment} . join(' ', $dev, $mntpoint, $type, $options || 'defaults', $freq, $passno) . "\n" ];
@@ -332,7 +336,7 @@ sub mount_options_unpack {
$non_defaults->{encrypted} = 1 if !$part->{isFormatted} || isSwap($part);
- $non_defaults->{supermount} = 1 if member(type2fs($part), 'auto', @auto_fs);
+ $non_defaults->{supermount} = 1 if $part->{type} =~ /:/ || member(type2fs($part), 'auto', @auto_fs);
my $defaults = { reverse %$non_defaults };
my %options = map { $_ => '' } keys %$non_defaults;
@@ -431,11 +435,10 @@ sub set_default_options {
if ($opts{is_removable}) {
$options->{supermount} = $opts{useSupermount};
- $part->{type} = 'auto';
+ $part->{type} = !$options->{supermount} ? 'auto' :
+ $part->{media_type} eq 'cdrom' ? 'udf:iso9660' : 'ext2:vfat';
}
- my $is_auto = isThisFs('auto', $part);
-
if ($part->{media_type} eq 'cdrom') {
$options->{ro} = 1;
}
@@ -460,7 +463,7 @@ sub set_default_options {
if (isThisFs('smbfs', $part)) {
add2hash($options, { 'username=' => '%' }) if !$options->{'credentials='};
}
- if (isFat($part) || $is_auto) {
+ if (isFat($part) || member('vfat', split(':', $part->{type})) || isThisFs('auto', $part)) {
put_in_hash($options, {
user => 1, noexec => 0,
@@ -473,7 +476,7 @@ sub set_default_options {
if (isThisFs('ntfs', $part)) {
put_in_hash($options, { ro => 1, 'umask=0' => $opts{security} < 3, 'iocharset=' => $opts{iocharset} });
}
- if (isThisFs('iso9660', $part) || $is_auto) {
+ if (member('iso9660', split(':', $part->{type})) || isThisFs('auto', $part)) {
put_in_hash($options, { user => 1, noexec => 0, 'iocharset=' => $opts{iocharset} });
}
if (isThisFs('reiserfs', $part)) {