summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2010-02-28 12:32:55 +0100
committerDirk von Suchodoletz2010-02-28 12:32:55 +0100
commit1a00fd0c6b80fa89c2ef6896c1242a55c981da0e (patch)
treeeb22f237dcfa62a0777047cf6102597e3a9f3f05 /initramfs/stage3-stuff/init
parentUpdating vmchooser, heavy cleanup in vmware plugin ... (diff)
downloadcore-1a00fd0c6b80fa89c2ef6896c1242a55c981da0e.tar.gz
core-1a00fd0c6b80fa89c2ef6896c1242a55c981da0e.tar.xz
core-1a00fd0c6b80fa89c2ef6896c1242a55c981da0e.zip
Creating the slx default directories in a more general manner (so the
plugins could depend on their existance) ...
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-xinitramfs/stage3-stuff/init13
1 files changed, 8 insertions, 5 deletions
diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init
index b28f1138..5dc646ca 100755
--- a/initramfs/stage3-stuff/init
+++ b/initramfs/stage3-stuff/init
@@ -1,6 +1,6 @@
#!/bin/ash
# Copyright (c) 2003..2006 - RZ Uni Freiburg
-# Copyright (c) 2006..2009 - OpenSLX GmbH
+# Copyright (c) 2006..2010 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -804,10 +804,13 @@ fi
runinithook '50-have-layered-fs'
-# logdir
-. /mnt/etc/opt/openslx/openslx.conf
-testmkd /mnt/${OPENSLX_DEFAULT_LOGDIR}
-chmod -R 1777 /mnt/${OPENSLX_DEFAULT_LOGDIR} # testmkd 1777 seems not to work
+# generate a set of default directories
+. /etc/openslx.conf
+for dir in $OPENSLX_DEFAULT_LOGDIR $OPENSLX_DEFAULT_BINDIR \
+ $OPENSLX_DEFAULT_LIBDIR $OPENSLX_DEFAULT_VIRTDIR; do
+ testmkd /mnt/$dir
+done
+chmod -R 1777 /mnt/${OPENSLX_DEFAULT_LOGDIR}
# script for stuff to execute during early bootup
d_mkrlscript init boot.slx "Running configuration postponed from InitRamFS"