From e5ae646c124de396d01bf0f051bfdb66b2baed30 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 23 May 2012 18:25:53 +0000 Subject: reduce scope of some variables --- rescue/guessmounts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rescue') 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; -- cgit v1.2.1