summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/scilin/functions-5.3
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-09-10 17:07:20 +0200
committerDirk von Suchodoletz2009-09-10 17:07:20 +0200
commit9ecd7e9591b83e09b75025dd663a07127a672ba3 (patch)
tree1f6cea4a548925ec82a54d70fdd2f282011df084 /initramfs/distro-specs/scilin/functions-5.3
parentPlugin to include pvs stuff more formally (do not use it yet!) ... (diff)
downloadcore-9ecd7e9591b83e09b75025dd663a07127a672ba3.tar.gz
core-9ecd7e9591b83e09b75025dd663a07127a672ba3.tar.xz
core-9ecd7e9591b83e09b75025dd663a07127a672ba3.zip
Fix, should allow "/" in automnt_dir variable. Fixing call of ntpd for
Scientific Linux. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3149 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/scilin/functions-5.3')
-rw-r--r--initramfs/distro-specs/scilin/functions-5.348
1 files changed, 48 insertions, 0 deletions
diff --git a/initramfs/distro-specs/scilin/functions-5.3 b/initramfs/distro-specs/scilin/functions-5.3
new file mode 100644
index 00000000..6d4c9a40
--- /dev/null
+++ b/initramfs/distro-specs/scilin/functions-5.3
@@ -0,0 +1,48 @@
+# Copyright (c) 2009 - RZ Uni Freiburg
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your feedback to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org
+#
+# Configuration script for Scientific Linux (5.1) to setup linux stateless
+# clients (executed within initial ramfs)
+
+# initial (boot time) runlevel scripts
+initial_boot () {
+# delete all classical disk base rootfs stuff from rc.sysinit
+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 "/# 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 >/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
+# 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" \
+ -i /mnt/etc/init.d/halt
+# boot.slx is a special runlevel script generated within initialramfs which
+# should be executed before the normal runlevel scripts.
+echo -e "# Run OpenSLX init runlevel script\n/etc/init.d/boot.slx" \
+ >>/mnt/etc/rc.d/rc.sysinit
+# switch off SElinux enforcing
+sed -e "1i# Configuration modified by $0 during stage3 bootup." \
+ -e "s/SELINUX=.*/SELINUX=permissive/" -i /mnt/etc/selinux/config
+# link halt and reboot scripts
+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