From f1a40757c077ce9e13e8709891f7c88b1b80e823 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 10 Sep 2009 18:24:21 +0000 Subject: Small fixes for Scientific Linux 5.3 ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3152 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/distro-specs/scilin/functions-5.3 | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'initramfs/distro-specs/scilin/functions-5.3') diff --git a/initramfs/distro-specs/scilin/functions-5.3 b/initramfs/distro-specs/scilin/functions-5.3 index 6d4c9a40..2952163c 100644 --- a/initramfs/distro-specs/scilin/functions-5.3 +++ b/initramfs/distro-specs/scilin/functions-5.3 @@ -17,18 +17,9 @@ initial_boot () { sed -e "6i# Script modified by $0 during stage3 bootup." \ -e "/relabel_se/,/^}/d" \ -e "/# Start up swap/,/# Set up bin/d" \ - -e "/# Remount/,/-o remount/d" -e "/^# Clean out/,/in_sysinit/d" \ + -e "/^remount_needed/,/^fi$/d" -e "/^# Clean out/,/in_sysinit/d" \ -e "/# Mount all o/,/# Start the g/d" \ - -e "/# Boot time/,/# let's/d" \ - -e "s,/sbin/start_udev$,/etc/init.d/udevd," -i /mnt/etc/rc.d/rc.sysinit -# write a custom udev script (to be checked!!) -echo -e "#!/bin/sh\n# Simple udev starter script created as a replacement \ -during OpenSLX stage3\n# bootup." >/mnt/etc/init.d/udevd -echo -e ". /etc/init.d/functions\nSTRING=\$\"Starting udev: \" \ -\necho -n \"\$STRING \"\n/sbin/udevstart /dev/null 2>&1 \ -\n[ \$? -eq 0 ] && success \$\"\$STRING\" || failure \$\"\$STRING\" \ -\nexit 0" >>/mnt/etc/init.d/udevd -chmod u+x /mnt/etc/init.d/udevd + -e "/# Boot time/,/# let's/d" -i /mnt/etc/rc.d/rc.sysinit # delete all classical disk base rootfs stuff from halt sed -e "7i# Modified by $0 during stage3 bootup." \ -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ @@ -45,4 +36,4 @@ ln -s ../init.d/killall /mnt/etc/rc.d/rc0.d/S00killall ln -s ../init.d/halt /mnt/etc/rc.d/rc0.d/S01halt ln -s ../init.d/killall /mnt/etc/rc.d/rc6.d/S00killall ln -s ../init.d/halt /mnt/etc/rc.d/rc6.d/S01reboot -} \ No newline at end of file +} -- cgit v1.2.3-55-g7522