diff options
-rwxr-xr-x | rescue/guessmounts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rescue/guessmounts b/rescue/guessmounts index e3ef66b94..0d1d9f50f 100755 --- a/rescue/guessmounts +++ b/rescue/guessmounts @@ -54,8 +54,7 @@ if (@$raid_parts) { push @$normal_parts, @$raids; } -my @fstab; -my ($root, $fs, @roots); +my @roots; foreach (@$normal_parts) { my $dev = devices::make($_->{device}); @@ -73,6 +72,8 @@ foreach (@$normal_parts) { system('umount', $target) == 0 or die "error unmounting $target\n"; } +my ($root, $fs, @fstab); + # Try Mageia first: if (@roots) { @roots = map { @$_ } partition { $_->{release} =~ /Mageia/ } @roots; |