summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/ubuntu
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/distro-specs/ubuntu')
-rw-r--r--initrd/distro-specs/ubuntu/functions-ubuntu27
1 files changed, 24 insertions, 3 deletions
diff --git a/initrd/distro-specs/ubuntu/functions-ubuntu b/initrd/distro-specs/ubuntu/functions-ubuntu
index 4344ac96..47826957 100644
--- a/initrd/distro-specs/ubuntu/functions-ubuntu
+++ b/initrd/distro-specs/ubuntu/functions-ubuntu
@@ -2,9 +2,9 @@
# linux diskless clients (executed within initial
# ramdisk after genconfig)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 18-01-2006
-# Blabla
-# Blub
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 20-01-2006
+# Nico Dietrich
+# Felix Endres
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
@@ -200,3 +200,24 @@ if [ "x$start_dreshal" = "xyes" ]; then
echo >/dev/null
fi
}
+
+# initialize boot.ld - skript to be executed during early system startup
+# (before most of the normal boot init scripts)
+# this script should operate like a normal runlevel script (fixme!!)
+d_bootld () {
+case "$1" in
+ init)
+ echo -e "#!/bin/sh\n# skeleton of /etc/${D_INITDIR}/boot.ld written \
+from $0" >/mnt/etc/${D_INITDIR}/boot.ld
+ echo -e '\n\ncase "$1" in start)' \
+ >>/mnt/etc/${D_INITDIR}/boot.ld
+ echo -e '\techo -n "Running post configuration required by initrd"' \
+ >>/mnt/etc/${D_INITDIR}/boot.ld
+ ;;
+ close)
+ echo -e "\t;;\n stop)\n\t;;esac\nexit 0" \
+ >>/mnt/etc/${D_INITDIR}/boot.ld
+
+ ;;
+esac
+}