summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.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/partition_table.pm
parent17641541c50681eee3614343f6dd3121a2a5400b (diff)
downloaddrakx-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar
drakx-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar.gz
drakx-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar.bz2
drakx-7d79e26663b72c39887dbb3ab12bcf84ba283842.tar.xz
drakx-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/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm2
1 files changed, 1 insertions, 1 deletions
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;
}