summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-29 18:34:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-29 18:34:27 +0000
commitec593e18cf024fe09356a5ea41d4ac3e4be078a7 (patch)
treed1181cf535d8ee9c71c5a7571db68d2c4bd16323 /perl-install/lvm.pm
parent7bd82322043b89f018d428dc76338ffc96774ec7 (diff)
downloaddrakx-backup-do-not-use-ec593e18cf024fe09356a5ea41d4ac3e4be078a7.tar
drakx-backup-do-not-use-ec593e18cf024fe09356a5ea41d4ac3e4be078a7.tar.gz
drakx-backup-do-not-use-ec593e18cf024fe09356a5ea41d4ac3e4be078a7.tar.bz2
drakx-backup-do-not-use-ec593e18cf024fe09356a5ea41d4ac3e4be078a7.tar.xz
drakx-backup-do-not-use-ec593e18cf024fe09356a5ea41d4ac3e4be078a7.zip
move device mapper initialisation out of lvm.pm into devices.pm (since it will be useful for other things)
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm10
1 files changed, 1 insertions, 9 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 4d3950ec6..ef3ab3090 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -31,15 +31,7 @@ sub cylinder_size {
init() or log::l("lvm::init failed");
sub init() {
- eval { modules::load('dm-mod') };
- devices::make('urandom');
- my $control = '/dev/mapper/control';
- if (! -e $control) {
- my ($major) = cat_('/proc/devices') =~ /(\d+) misc$/m or return;
- my ($minor) = cat_('/proc/misc') =~ /(\d+) device-mapper$/m or return;
- mkdir_p(dirname($control));
- syscall_('mknod', $control, c::S_IFCHR() | 0600, makedev($major, $minor)) or die "mknod $control failed: $!";
- }
+ devices::init_device_mapper();
if ($::isInstall) {
run_program::run('lvm2', 'vgscan');
run_program::run('lvm2', 'vgchange', '-a', 'y');