From 7afca68de0301e5512db64ee21f587cdd7ea497c Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 16 Jul 2009 22:49:14 +0000 Subject: Mounting swap in Ubuntu and id45,46 ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3013 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/distro-specs/ubuntu/functions-default | 9 +++++++-- 1 file changed, 7 insertions(+), 2 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 6aa08e39..ee3a151e 100644 --- a/initramfs/distro-specs/ubuntu/functions-default +++ b/initramfs/distro-specs/ubuntu/functions-default @@ -80,6 +80,11 @@ config_distro () { -e "/# This next bit can/a\ /sbin/udevadm trigger" \ -e "/# We need the uevent/,/# It's all over/d" \ -e "/# Log things that/,/kill \$UDEV/d" -i /mnt/etc/init.d/udev + + # clean the mountall.sh script as only swap activation needed + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/pre_mountall/,/post_mountall/d" \ + -i /mnt/etc/init.d/mountall.sh } # initial (boot time) runlevel scripts @@ -88,8 +93,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 keyboard-setup procps bootlogd \ -hwclock.sh sudo console-setup udev boot.slx $D_SPLASHY; do +for i in mountkernfs.sh mountall.sh mountdevsubfs.sh keyboard-setup procps \ +bootlogd hwclock.sh sudo console-setup udev 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