summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2007-10-08 21:18:37 +0000
committerDoug Goldstein <cardoe@gentoo.org>2007-10-08 21:18:37 +0000
commit148fe6e58ce3d687f3b60066a075da3539cb4f87 (patch)
tree5cb4fcf68bae99021273e76fad5f4e9daf4082ad /sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3
parentLVM should come up after modules and mdraid. If you want to have a MD device ... (diff)
downloadgentoo-2-148fe6e58ce3d687f3b60066a075da3539cb4f87.tar.gz
gentoo-2-148fe6e58ce3d687f3b60066a075da3539cb4f87.tar.bz2
gentoo-2-148fe6e58ce3d687f3b60066a075da3539cb4f87.zip
device-mapper should start after modules and LVM by default. If you need to change this, edit conf.d/device-mapper. before checkroot -> before checkfs
(Portage version: 2.1.3.12)
Diffstat (limited to 'sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3')
-rw-r--r--sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r323
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3 b/sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3
new file mode 100644
index 000000000000..76bcc162fbef
--- /dev/null
+++ b/sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/files/device-mapper.rc-1.02.22-r3,v 1.1 2007/10/08 21:18:37 cardoe Exp $
+
+depend() {
+ if [ -e /lib/librc.so ]; then
+ # on baselayout-1 this causes
+ # a dependency loop with checkroot (before *)
+ before checkfs
+ fi
+}
+
+start() {
+ if [ ! -e /lib/librc.so ]; then
+ eerror "The ${SVCNAME} init script is written for baselayout-2"
+ eerror "Please do not use it with baselayout-1"
+ return 1
+ fi
+
+ start_addon dm
+}
+