summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-01 11:30:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-01 11:30:43 +0000
commitdf14eeba3bbbc5381786ef52acf815765524a2af (patch)
tree2a99774e1ad7acfe416e5ccf76579f6f068bfa94
parent1ab876ac9facd3c3666e2eac12e3053598113f21 (diff)
downloaddrakx-backup-do-not-use-df14eeba3bbbc5381786ef52acf815765524a2af.tar
drakx-backup-do-not-use-df14eeba3bbbc5381786ef52acf815765524a2af.tar.gz
drakx-backup-do-not-use-df14eeba3bbbc5381786ef52acf815765524a2af.tar.bz2
drakx-backup-do-not-use-df14eeba3bbbc5381786ef52acf815765524a2af.tar.xz
drakx-backup-do-not-use-df14eeba3bbbc5381786ef52acf815765524a2af.zip
do add entry for other distros even if we can't recognise the distro name
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 3267be9d9..42c1c7726 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1857,12 +1857,13 @@ sub find_other_distros_grub_conf {
if ($ok) {
add2hash($e, $root);
undef $root;
- push @found, $e;
} elsif ($root) {
- log::l("weird case, skipping grub conf from $e->{bootpart}{device}, keeping '/' from $root->{part}{device}");
+ log::l("weird case for grub conf in $e->{bootpart}{device}, keeping '/' from $root->{part}{device}");
} else {
log::l("could not recognise the distribution for $e->{grub_conf} in $e->{bootpart}{device}");
}
+ $e->{name} ||= "Linux $e->{bootpart}{device}";
+ push @found, $e;
}
}
$set_root->(undef);