summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:25:53 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:25:53 +0000
commite5ae646c124de396d01bf0f051bfdb66b2baed30 (patch)
tree0be4028a06fb43249579842c30dcebf56c291be9 /rescue
parent849cad764389205d212e7d97086245434fb43ae0 (diff)
downloaddrakx-backup-do-not-use-e5ae646c124de396d01bf0f051bfdb66b2baed30.tar
drakx-backup-do-not-use-e5ae646c124de396d01bf0f051bfdb66b2baed30.tar.gz
drakx-backup-do-not-use-e5ae646c124de396d01bf0f051bfdb66b2baed30.tar.bz2
drakx-backup-do-not-use-e5ae646c124de396d01bf0f051bfdb66b2baed30.tar.xz
drakx-backup-do-not-use-e5ae646c124de396d01bf0f051bfdb66b2baed30.zip
reduce scope of some variables
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/guessmounts5
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;