From 7d79e26663b72c39887dbb3ab12bcf84ba283842 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 16 Sep 2008 16:48:06 +0000 Subject: - 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) --- perl-install/partition_table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/partition_table.pm') diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 6890b466d..d26a14e31 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -85,7 +85,7 @@ sub compute_device_name { sub _compute_device_name { my ($hd, $nb) = @_; - my $prefix = $hd->{prefix} || $hd->{device} . ($hd->{device} =~ /\d$/ ? 'p' : ''); + my $prefix = $hd->{prefix} || devices::prefix_for_dev($hd->{device}); $prefix . $nb; } -- cgit v1.2.1