diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-01 11:30:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-01 11:30:43 +0000 |
commit | df14eeba3bbbc5381786ef52acf815765524a2af (patch) | |
tree | 2a99774e1ad7acfe416e5ccf76579f6f068bfa94 | |
parent | 1ab876ac9facd3c3666e2eac12e3053598113f21 (diff) | |
download | drakx-df14eeba3bbbc5381786ef52acf815765524a2af.tar drakx-df14eeba3bbbc5381786ef52acf815765524a2af.tar.gz drakx-df14eeba3bbbc5381786ef52acf815765524a2af.tar.bz2 drakx-df14eeba3bbbc5381786ef52acf815765524a2af.tar.xz drakx-df14eeba3bbbc5381786ef52acf815765524a2af.zip |
do add entry for other distros even if we can't recognise the distro name
-rw-r--r-- | perl-install/bootloader.pm | 5 |
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); |