summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/bootloader.pm3
-rw-r--r--perl-install/bootsplash.pm4
3 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 76a11c7f2..62e3819d0 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -2,6 +2,8 @@
o allow "Use free space" if there is an extended
partition even if all primary partitions are used (#38804)
(*old* bug!)
+- draksplash:
+ o fix reading grub conf (#39346)
Version 10.20 - 25 March 2008
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index adca7a9d3..c35f5aad2 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -223,7 +223,8 @@ sub read_grub {
sub _may_fix_grub2dev {
my ($fstab, $grub2dev, $root) = @_;
- my $real_root_part = fs::get::root($fstab);
+ my $real_root_part = fs::get::root_($fstab) or
+ log::l("argh... the fstab given is useless, it doesn't contain '/'"), return;
if (my $prev_root_part = fs::get::device2part(grub2dev($root, $grub2dev), $fstab)) { # the root_device as far as grub config files say
$real_root_part == $prev_root_part and return;
diff --git a/perl-install/bootsplash.pm b/perl-install/bootsplash.pm
index 6507e46ef..ef89fc330 100644
--- a/perl-install/bootsplash.pm
+++ b/perl-install/bootsplash.pm
@@ -15,7 +15,9 @@ our @resolutions = uniq(map { "$_->{X}x$_->{Y}" } Xconfig::resolution_and_depth:
sub get_framebuffer_resolution() {
require bootloader;
require fsedit;
- my $bootloader = bootloader::read(fsedit::get_hds());
+ my $all_hds = fsedit::get_hds();
+ fs::get_info_from_fstab($all_hds);
+ my $bootloader = bootloader::read($all_hds);
my $x_res = Xconfig::resolution_and_depth::from_bios($bootloader->{default_options}{vga});
$x_res ?
($x_res->{X} . 'x' . $x_res->{Y}, 1) :