summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/format.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-05-13 14:36:01 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-05-13 14:36:01 +0000
commit613fcd7af22bfec6c5580528079523d8aac9113b (patch)
tree772941564cab76839e70e4f33d42f6804d1a1ebe /perl-install/fs/format.pm
parentf2a3b78b29df3bc9952521cfdcbb9aa2afeed984 (diff)
downloaddrakx-613fcd7af22bfec6c5580528079523d8aac9113b.tar
drakx-613fcd7af22bfec6c5580528079523d8aac9113b.tar.gz
drakx-613fcd7af22bfec6c5580528079523d8aac9113b.tar.bz2
drakx-613fcd7af22bfec6c5580528079523d8aac9113b.tar.xz
drakx-613fcd7af22bfec6c5580528079523d8aac9113b.zip
- enable acl by default on ext3/4 fs
- enable user_xattr on home for ext2 too
Diffstat (limited to 'perl-install/fs/format.pm')
-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);