summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
Diffstat (limited to 'rescue')
-rw-r--r--rescue/NEWS1
-rwxr-xr-xrescue/bin/guessmounts4
2 files changed, 3 insertions, 2 deletions
diff --git a/rescue/NEWS b/rescue/NEWS
index ab773729e..3030ba281 100644
--- a/rescue/NEWS
+++ b/rescue/NEWS
@@ -1,5 +1,6 @@
- do not preload all fs modules uselessly
- guessmount:
+ o fix displaying the version of the distro
o just use the fs reported by blkid instead of doing brute force guessing
Version 1.63 - 19 March 2020 by Thierry Vignaud
diff --git a/rescue/bin/guessmounts b/rescue/bin/guessmounts
index a4d1fa7f7..683e47c70 100755
--- a/rescue/bin/guessmounts
+++ b/rescue/bin/guessmounts
@@ -67,12 +67,12 @@ foreach (@$normal_parts) {
system("mount -t $fs $dev $target 2>/dev/null");
if (my $release_file = common::release_file($target)) {
- my $release = chomp_(cat_("$target$release_file"));
- print STDERR "=> found a $release root partition on $dev\n=> type $fs, version `\n";
my @fstab = fs::read_fstab($target, '/etc/fstab');
my $h = common::parse_release_file($target, $release_file, $_);
add2hash($h, { dev => $dev, fs => $fs, fstab => \@fstab,
pretty_name => "$h->{release} $h->{version} $h->{arch} on $dev" });
+ my $release = chomp_(cat_("$target$release_file"));
+ printf STDERR "=> found a %s root partition on $dev\n=> type $fs, version `$release'\n", $h->{release};
# Offer to rescue only same arch:
$h->{pretty_name} .= " (cannot be rescued: $h->{arch} ne $arch;)" if $h->{arch} ne $arch;
push @roots, $h;