summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-16 16:48:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-16 16:48:06 +0000
commit7d79e26663b72c39887dbb3ab12bcf84ba283842 (patch)
tree3150653522ef25d480a491e8bca38b6fc75313e4 /perl-install/bootloader.pm
parent17641541c50681eee3614343f6dd3121a2a5400b (diff)
downloaddrakx-backup-do-not-use-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar
drakx-backup-do-not-use-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar.gz
drakx-backup-do-not-use-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar.bz2
drakx-backup-do-not-use-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar.xz
drakx-backup-do-not-use-7d79e26663b72c39887dbb3ab12bcf84ba283842.zip
- bootloader-config:
o fix reading existing grub conf in present of /dev/mapper/xxxx0p1 partitions (which was causing bootloader-config to drop correct entries, cf #37722)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 1939401c3..cb0839598 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1551,7 +1551,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/' . $grub2dev->{$hd} . $part;
+ my $device = '/dev/' . devices::prefix_for_dev($grub2dev->{$hd}) . $part;
$device, $rel_file;
}
sub grub2dev {