summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs.pm11
-rw-r--r--perl-install/install2.pm8
2 files changed, 9 insertions, 10 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index fcf933adf..8fb7d4896 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -334,6 +334,13 @@ sub set_default_options {
$options->{sync} = 1;
}
+ if (isTrueFS($part)) {
+ #- noatime on laptops (do not wake up the hd)
+ #- Do not update inode access times on this
+ #- file system (e.g, for faster access on the
+ #- news spool to speed up news servers).
+ $options->{noatime} = detect_devices::isLaptop();
+ }
if (isNfs($part)) {
put_in_hash($options, {
nosuid => 1, 'rsize=8192,wsize=8192' => 1,
@@ -342,7 +349,7 @@ sub set_default_options {
if (isFat($part) || $is_auto) {
put_in_hash($options, {
- user => 1, exec => 1,
+ user => 1, noexec => 0,
}) if !exists $part->{rootDevice}; # partition means no removable media
put_in_hash($options, {
@@ -353,7 +360,7 @@ sub set_default_options {
put_in_hash($options, { 'iocharset=' => $iocharset });
}
if (isThisFs('iso9660', $part) || $is_auto) {
- put_in_hash($options, { user => 1, exec => 1, });
+ put_in_hash($options, { user => 1, noexec => 0, });
}
if (isThisFs('reiserfs', $part)) {
$options->{notail} = 1;
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index a8c60cab8..a2d52ea20 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -175,14 +175,6 @@ sub formatPartitions {
require raid;
raid::prepare_prefixed($o->{all_hds}{raids}, $o->{prefix});
-
-#- chdir "$o->{prefix}"; was for core dumps
-
- #-noatime option for ext2 fs on laptops (do not wake up the hd)
- #- Do not update inode access times on this
- #- file system (e.g, for faster access on the
- #- news spool to speed up news servers).
- $o->{pcmcia} and $_->{options} = "noatime" foreach grep { isTrueFS($_) } @{$o->{fstab}};
}
#------------------------------------------------------------------------------