summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-29 03:00:24 +0200
committerDirk von Suchodoletz2009-03-29 03:00:24 +0200
commitbe830ab8eea3610b2f411d6ebcb84cec2d064483 (patch)
tree48553d27c19dc8ee7d41d6b0cff3b6cf63a1b3d7 /initramfs/distro-specs/ubuntu/functions-default
parentFixed psmouse module handling. (diff)
downloadcore-be830ab8eea3610b2f411d6ebcb84cec2d064483.tar.gz
core-be830ab8eea3610b2f411d6ebcb84cec2d064483.tar.xz
core-be830ab8eea3610b2f411d6ebcb84cec2d064483.zip
Fixing the /dev/shm issue of #403, #404, improving udev handling
in Ubuntu (to avoid tampering with /dev/shm permissions). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2768 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default15
1 files changed, 12 insertions, 3 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index d5cb3f9b..fd14dbd0 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -1,5 +1,5 @@
# Copyright (c) 2003..2006 - RZ Uni Freiburg
-# Copyright (c) 2006..2008 - OpenSLX GmbH
+# Copyright (c) 2006..2009 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -70,6 +70,15 @@ config_distro () {
# for screen sessions
testmkd /mnt/var/run/screen root:utmp 0775
+
+ # no additional /dev/shm mount needed as it is always used
+ sed -e "/Mount a tmpfs on/,/domount tmpfs /d" \
+ -i /mnt/etc/init.d/mountdevsubfs.sh
+
+ # clean up the udev script as much is handled already in stage3
+ sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \
+ -e "/# We need the uevent/,/# It's all over/d" \
+ -e "/# Log things that/,/kill \$UDEV/d" -i /mnt/etc/init.d/udev
}
# initial (boot time) runlevel scripts
@@ -78,8 +87,8 @@ local count=10
# boot.slx is a special runlevel script generated within initialramfs which
# should be executed before the normal runlevel scripts. Proper shutdown is
# not needed!?
-for i in mountkernfs.sh mountdevsubfs.sh boot.slx keyboard-setup procps \
-bootlogd hwclock.sh sudo console-setup $D_SPLASHY; do
+for i in mountkernfs.sh mountdevsubfs.sh keyboard-setup procps bootlogd \
+hwclock.sh sudo console-setup boot.slx $D_SPLASHY; do
count=$(($count + 1))
[ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i"
ln -sf /etc/init.d/$i /mnt/etc/rcS.d/S${count}$i