diff options
Diffstat (limited to 'rescue/bin')
-rwxr-xr-x | rescue/bin/guessmounts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rescue/bin/guessmounts b/rescue/bin/guessmounts index 07cd62ba3..a4d1fa7f7 100755 --- a/rescue/bin/guessmounts +++ b/rescue/bin/guessmounts @@ -62,9 +62,9 @@ my $arch = arch() =~ /i.86/ ? $MDK::Common::System::compat_arch{arch()} : arch() foreach (@$normal_parts) { my $dev = devices::make($_->{device}); - my $fs = find { - system("mount -t $_ $dev $target 2>/dev/null") == 0; - } fs::type::true_local_fs_types() or next; + my $fs = $_->{fs_type}; + $fs or next; # no need to display an error if there's no fs... + system("mount -t $fs $dev $target 2>/dev/null"); if (my $release_file = common::release_file($target)) { my $release = chomp_(cat_("$target$release_file")); |