aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-09-30 13:46:51 -0400
committerBill Nottingham <notting@redhat.com>2008-09-30 13:46:51 -0400
commit564cddf53cd47b373727cdf13a6b4446ab824327 (patch)
treefe5ae51fb115ca57290ba4f97810c0b2edf8cc3a /rc.d
parent222ea53bc68264bcc18afb1449411302d80c1bb2 (diff)
downloadinitscripts-564cddf53cd47b373727cdf13a6b4446ab824327.tar
initscripts-564cddf53cd47b373727cdf13a6b4446ab824327.tar.gz
initscripts-564cddf53cd47b373727cdf13a6b4446ab824327.tar.bz2
initscripts-564cddf53cd47b373727cdf13a6b4446ab824327.tar.xz
initscripts-564cddf53cd47b373727cdf13a6b4446ab824327.zip
Explicitly load dm-mod.
We do need to explicitly load dm-mod for older kernels, because the various tools won't necessarily do it. *sigh* Reverts a chunk of 2285e2f27e1f9dce216a8b8791bd4f4237bdff80.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index d53378b0..f1734bae 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -330,6 +330,11 @@ sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
update_boot_stage RChostname
action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
+# Device mapper & related initialization
+if ! __fgrep "device-mapper" /proc/devices >/dev/null 2>&1 ; then
+ modprobe dm-mod >/dev/null 2>&1
+fi
+
if [ -f /etc/crypttab ]; then
init_crypto 0
fi