aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-03-17 11:30:25 +0100
committerTom Gundersen <teg@jklm.no>2012-03-17 11:30:25 +0100
commit4c6aba5ab3812523e65806c2876035b4498aad2e (patch)
tree6d21bf580d8efc007be58ef6c1b01db1b242d14f /functions
parentcb1ddfc15431f2e6498c93cd4da53e14f1147659 (diff)
downloadinitscripts-4c6aba5ab3812523e65806c2876035b4498aad2e.tar.xz
sysinit: do not unconditionally modprobe any more
dm-mod and dm-crypt will be autoloaded when needed (at least on kernels newer than 2.6.36). The rtc modules should be compiled in, as they have been in the official kernels for some time. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 0 insertions, 2 deletions
diff --git a/functions b/functions
index 129b3d4..f5da93c 100644
--- a/functions
+++ b/functions
@@ -372,9 +372,7 @@ udevd_modprobe() {
activate_vgs() {
[[ $USELVM = [yY][eE][sS] && -x $(type -P lvm) && -d /sys/block ]] || return 0
- # Kernel 2.6.x, LVM2 groups
stat_busy "Activating LVM2 groups"
- modprobe -q dm-mod 2>/dev/null
vgchange --sysinit -a y >/dev/null
(( $? == 0 )) && stat_done || stat_fail
}