summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorFelix Endres2006-08-15 16:16:52 +0200
committerFelix Endres2006-08-15 16:16:52 +0200
commit2aa34daed7e3e82e8e62310229f8d16092512b00 (patch)
treec70b98e4dfdea6db03d48c5c872f175de3d7c316 /initrd/initrd-stuff/init
parent* added confiurable attributes (shared between system, client and group) (diff)
downloadcore-2aa34daed7e3e82e8e62310229f8d16092512b00.tar.gz
core-2aa34daed7e3e82e8e62310229f8d16092512b00.tar.xz
core-2aa34daed7e3e82e8e62310229f8d16092512b00.zip
Ubuntu 5.10: working
Ubuntu 6.06: still problems with gdm git-svn-id: http://svn.openslx.org/svn/openslx/trunk@297 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init15
1 files changed, 8 insertions, 7 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 5160d93c..fe562ce9 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -46,6 +46,13 @@ echo 256 > /proc/sys/kernel/real-root-dev
# redirect console (after /dev/console is available, and /dev mounted)
exec < /dev/console > /dev/console 2>&1
+# set defaults and create special files so that "waitfor" does not waites
+# for a configuration option
+TMPFSSIZE="50%"
+COWSIZE="50%"
+RWDIR=/dev/shm
+NFSRO="nfs"
+
# run pre init script and user defined preinit.local (see Howto)
preinit
[ -x /bin/preinit.local ] && /bin/preinit.local
@@ -53,12 +60,6 @@ preinit
# start device auto discovery service - distro specific function
udev_hotplug
-# set defaults and create special files so that "waitfor" does not waites
-# for a configuration option
-TMPFSSIZE="50%"
-COWSIZE="50%"
-RWDIR=/dev/shm
-NFSRO="nfs"
# switch off the several configuration methods, will be switched on
# according to kernel commandline settings
echo "noldap" > /tmp/ldap-done
@@ -355,7 +356,7 @@ if [ -n "${UNIONFS}" ] ; then
mount -n -t tmpfs none ${RWDIR}/uniontmp
# hack for handling unionfs with patched run-init
mount -n --move /mnt /rorootfs
- mount -n -t unionfs -o dirs=${RWDIR}/uniontmp=rw:/rorootfs=${NFSRO}ro \
+ mount -n -t unionfs -o dirs=${RWDIR}/uniontmp:/rorootfs=${NFSRO}ro \
none /mnt
mkdir -p /mnt/uniontmp
mount -n --move ${RWDIR}/uniontmp /mnt/uniontmp