summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS3
-rw-r--r--perl-install/bootloader.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 5f1663035..4c41d1cb8 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,6 @@
+- bootloader-config:
+ o fix handling fd0 (regression introduced in 11.44) (#44049)
+
Version 11.49.2 - 22 September 2008
- fix crash (#44053)
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index a046c01b1..ce5054d62 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1567,7 +1567,7 @@ sub grub2dev_and_file {
my ($hd, $part, $rel_file) = parse_grub_file($grub_file) or return;
$grub2dev->{$hd} or internal_error("$hd has no mapping in device.map (when translating $grub_file)");
$part = $o_block_device ? '' : defined $part && $part + 1; #- grub wants "(hdX,Y)" where lilo just want "hdY+1"
- my $device = '/dev/' . devices::prefix_for_dev($grub2dev->{$hd}) . $part;
+ my $device = '/dev/' . ($part eq '' ? $grub2dev->{$hd} : devices::prefix_for_dev($grub2dev->{$hd}) . $part);
$device, $rel_file;
}
sub grub2dev {