diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-05-23 18:25:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-05-23 18:25:53 +0000 |
commit | 7425793af23d41f57602cdc392bf03e531fe6ed8 (patch) | |
tree | 0be4028a06fb43249579842c30dcebf56c291be9 | |
parent | da61f7a33aae98ed8f76103a0449f6c1f437e703 (diff) | |
download | drakx-7425793af23d41f57602cdc392bf03e531fe6ed8.tar drakx-7425793af23d41f57602cdc392bf03e531fe6ed8.tar.gz drakx-7425793af23d41f57602cdc392bf03e531fe6ed8.tar.bz2 drakx-7425793af23d41f57602cdc392bf03e531fe6ed8.tar.xz drakx-7425793af23d41f57602cdc392bf03e531fe6ed8.zip |
reduce scope of some variables
-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; |