summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/format.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm
index 9caa4f45f..3c1c9d346 100644
--- a/perl-install/fs/format.pm
+++ b/perl-install/fs/format.pm
@@ -271,10 +271,14 @@ sub formatMount_part {
}
#- setting user_xattr on /home (or "/" if no /home)
- if (!$part->{isMounted} && member($part->{fs_type}, qw(ext3 ext4))
- && ($part->{mntpoint} eq '/home' ||
- !fs::get::has_mntpoint('/home', $all_hds) && $part->{mntpoint} eq '/')) {
- run_program::run('tune2fs', '-o', 'user_xattr', devices::make($part->{real_device} || $part->{device}));
+ #- setting acl everywhere
+ if (!$part->{isMounted} && member($part->{fs_type}, qw(ext2 ext3 ext4))) {
+ my $default_options = 'acl';
+ if ($part->{mntpoint} eq '/home' ||
+ (!fs::get::has_mntpoint('/home', $all_hds) && $part->{mntpoint} eq '/')) {
+ $default_options .= ',user_xattr';
+ }
+ run_program::run('tune2fs', '-o', $default_options, devices::make($part->{real_device} || $part->{device}));
}
fs::mount::part($part, 0, $wait_message);