summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-13 12:24:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-13 12:24:14 +0000
commit58f604869ed79dd73e01a4955efbadd97226635d (patch)
tree0c37f0a0abf0f710b4435f3feeb9dcb8e7ff084b
parent8afcf58402d2640d86353bd34ee2734530c2ab5b (diff)
downloaddrakx-58f604869ed79dd73e01a4955efbadd97226635d.tar
drakx-58f604869ed79dd73e01a4955efbadd97226635d.tar.gz
drakx-58f604869ed79dd73e01a4955efbadd97226635d.tar.bz2
drakx-58f604869ed79dd73e01a4955efbadd97226635d.tar.xz
drakx-58f604869ed79dd73e01a4955efbadd97226635d.zip
lvm2 uses urandom
-rw-r--r--perl-install/devices.pm1
-rw-r--r--perl-install/lvm.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index c2322d9b5..2d01d7ad3 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -143,6 +143,7 @@ sub entry {
"psaux" => [ c::S_IFCHR(), 10, 1 ],
"atibm" => [ c::S_IFCHR(), 10, 3 ],
"random" => [ c::S_IFCHR(), 1, 8 ],
+ "urandom" => [ c::S_IFCHR(), 1, 9 ],
"sbpcd" => [ c::S_IFBLK(), 25, 0 ],
"sjcd" => [ c::S_IFBLK(), 18, 0 ],
"tty" => [ c::S_IFCHR(), 5, 0 ],
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 68e8f6e2f..f4a94179c 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -32,6 +32,7 @@ init();
sub init() {
eval { modules::load('dm-mod') };
+ devices::make('urandom');
run_program::run('lvm2', 'vgscan') if !-e '/etc/lvmtab';
run_program::run('lvm2', 'vgchange', '-a', 'y');
}