summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index e6dc4ef38..27c177a25 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -293,14 +293,13 @@ sub write_fstab($;$$) {
! exists $new{"/dev/$_->{device}"} } @$fstab;
push @to_add,
- sort { $a->[1] cmp $b->[1] }
grep { !exists $new{$_->[0]} && !exists $new{$_->[1]} }
map { [ split ] } cat_("$prefix/etc/fstab");
log::l("writing $prefix/etc/fstab");
local *F;
open F, "> $prefix/etc/fstab" or die "error writing $prefix/etc/fstab";
- print F join(" ", @$_), "\n" foreach @to_add;
+ print F join(" ", @$_), "\n" foreach sort { $a->[1] cmp $b->[1] } @to_add;
}
sub check_mount_all_fstab($;$) {