diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-16 16:48:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-16 16:48:06 +0000 |
commit | 7d79e26663b72c39887dbb3ab12bcf84ba283842 (patch) | |
tree | 3150653522ef25d480a491e8bca38b6fc75313e4 /perl-install/devices.pm | |
parent | 17641541c50681eee3614343f6dd3121a2a5400b (diff) | |
download | drakx-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/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 197127cd0..9ee3d6ac5 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -203,6 +203,11 @@ sub part_prefix { (simple_partition_scan($part))[0]; } +sub prefix_for_dev { + my ($dev) = @_; + $dev . ($dev =~ /\d$/ ? 'p' : ''); +} + sub symlink_now_and_register { my ($if_struct, $of) = @_; my $if = $if_struct->{device}; |