From be830ab8eea3610b2f411d6ebcb84cec2d064483 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 29 Mar 2009 01:00:24 +0000 Subject: 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 --- initramfs/distro-specs/ubuntu/functions-default | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'initramfs/distro-specs/ubuntu/functions-default') 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 -- cgit v1.2.3-55-g7522