diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-12-07 13:53:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-12-07 13:53:02 +0000 |
commit | 3e881183d59b7fe80b703dfa269851e3cbf35302 (patch) | |
tree | b22428f4a80e2735a43fe64e141fe3ad6bf72bb1 /perl-install/fs.pm | |
parent | 47e95567a695046e6ca3b6020345f71f400e2102 (diff) | |
download | drakx-backup-do-not-use-3e881183d59b7fe80b703dfa269851e3cbf35302.tar drakx-backup-do-not-use-3e881183d59b7fe80b703dfa269851e3cbf35302.tar.gz drakx-backup-do-not-use-3e881183d59b7fe80b703dfa269851e3cbf35302.tar.bz2 drakx-backup-do-not-use-3e881183d59b7fe80b703dfa269851e3cbf35302.tar.xz drakx-backup-do-not-use-3e881183d59b7fe80b703dfa269851e3cbf35302.zip |
no_comment
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 6ccc8d909..a7180aad9 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -186,8 +186,8 @@ sub umount_all($;$) { } #- do some stuff before calling write_fstab -sub write($$$) { - my ($prefix, $fstab, $manualFstab) = @_; +sub write($$$$) { + my ($prefix, $fstab, $manualFstab, $useSupermount) = @_; $fstab = [ @{$fstab||[]}, @{$manualFstab||[]} ]; log::l("resetting /etc/mtab"); @@ -195,23 +195,26 @@ sub write($$$) { open F, "> $prefix/etc/mtab" or die "error resetting $prefix/etc/mtab"; my @to_add = ( -#- [ split ' ', '/dev/fd0 /mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0' ], - [ split ' ', '/mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/fd0 0 0' ], + $useSupermount ? + [ split ' ', '/mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/fd0 0 0' ] : + [ split ' ', '/dev/fd0 /mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0' ], [ split ' ', 'none /proc proc defaults 0 0' ], [ split ' ', 'none /dev/pts devpts mode=0620 0 0' ], (map_index { my $i = $::i ? $::i + 1 : ''; mkdir "$prefix/mnt/cdrom$i", 0755 or log::l("failed to mkdir $prefix/mnt/cdrom$i: $!"); symlinkf $_->{device}, "$prefix/dev/cdrom$i" or log::l("failed to symlink $prefix/dev/cdrom$i: $!"); -#- [ "/dev/cdrom$i", "/mnt/cdrom$i", "auto", "user,noauto,nosuid,exec,nodev,ro", 0, 0 ]; - [ "/mnt/cdrom$i", "/mnt/cdrom$i", "supermount", "fs=iso9660,dev=/dev/cdrom$i", 0, 0 ]; + $useSupermount ? + [ "/mnt/cdrom$i", "/mnt/cdrom$i", "supermount", "fs=iso9660,dev=/dev/cdrom$i", 0, 0 ] : + [ "/dev/cdrom$i", "/mnt/cdrom$i", "auto", "user,noauto,nosuid,exec,nodev,ro", 0, 0 ]; } detect_devices::cdroms()), (map_index { #- for zip drives, the right partition is the 4th. my $i = $::i ? $::i + 1 : ''; mkdir "$prefix/mnt/zip$i", 0755 or log::l("failed to mkdir $prefix/mnt/zip$i: $!"); symlinkf "$_->{device}4", "$prefix/dev/zip$i" or log::l("failed to symlink $prefix/dev/zip$i: $!"); -#- [ "/dev/zip$i", "/mnt/zip$i", "auto", "user,noauto,nosuid,exec,nodev", 0, 0 ]; - [ "/mnt/zip$i", "/mnt/zip$i", "supermount", "fs=vfat,dev=/dev/zip$i", 0, 0 ]; + $useSupermount ? + [ "/mnt/zip$i", "/mnt/zip$i", "supermount", "fs=vfat,dev=/dev/zip$i", 0, 0 ] : + [ "/dev/zip$i", "/mnt/zip$i", "auto", "user,noauto,nosuid,exec,nodev", 0, 0 ]; } detect_devices::zips())); write_fstab($fstab, $prefix, @to_add); } |