#!/bin/sh
#
# /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.114 2003/04/10 07:37:41 misiek Exp $
+# $Id: rc.sysinit,v 1.115 2003/04/17 18:21:56 baggins Exp $
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
# Changes: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
fi
fi
# LVM
-if is_yes "$EVMS_LVM" || [ -e /etc/lvmtab -a -x /sbin/vgscan -a -x /sbin/vgchange ]; then
+if is_yes "$EVMS_LVM" || [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
modprobe -s lvm-mod >/dev/null 2>&1
+ # device mapper (2.5+ and patched 2.4)
+ modprobe -s dm-mod >/dev/null 2>&1
run_cmd "Scanning for LVM volume groups" /sbin/vgscan && \
run_cmd "Activating LVM volume groups" /sbin/vgchange -a y
fi