From 1a00fd0c6b80fa89c2ef6896c1242a55c981da0e Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 28 Feb 2010 12:32:55 +0100 Subject: Creating the slx default directories in a more general manner (so the plugins could depend on their existance) ... --- initramfs/stage3-stuff/init | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'initramfs/stage3-stuff/init') 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" -- cgit v1.2.3-55-g7522