diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-03-04 16:00:03 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-03-04 16:00:03 +0000 |
commit | eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3 (patch) | |
tree | 28363838fefa6d57c3bd45521308235377075c5e /perl-install/fs.pm | |
parent | ce0442c03906c3280e0efbc56d247012a6316ae9 (diff) | |
download | drakx-backup-do-not-use-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar drakx-backup-do-not-use-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar.gz drakx-backup-do-not-use-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar.bz2 drakx-backup-do-not-use-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar.xz drakx-backup-do-not-use-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.zip |
remove extents options on ext4 when updating fstab
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index d95890cb3..61947c0a8 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -72,6 +72,10 @@ sub read_fstab { } s/\\040/ /g foreach $mntpoint, $dev, $options; + if ($fs_type eq 'ext4') { + $options = join(",", grep { !/extents/ } split(',', $options)) || 'defaults'; + } + my $h = { mntpoint => $mntpoint, fs_type => $fs_type, options => $options, comment => $comment, |