summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
authorOliver Tappe2008-03-24 20:12:49 +0100
committerOliver Tappe2008-03-24 20:12:49 +0100
commit4df438259c0b9be0c040fcc042867186922ba04f (patch)
treea012b35991567774ce11532a46330785416202d9 /initramfs/initrd-stuff/init
parent* split syslog::target into syslog::host and syslog::port (diff)
downloadcore-4df438259c0b9be0c040fcc042867186922ba04f.tar.gz
core-4df438259c0b9be0c040fcc042867186922ba04f.tar.xz
core-4df438259c0b9be0c040fcc042867186922ba04f.zip
* fileget can't run in the background, in order to allow to use it's result
(config) in init-hook '15-have-ip-config' * added three more init-hooks: '85-have-inital-boot', '90-postinit-done' and '95-cleanup' for finer grained control git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1685 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init8
1 files changed, 7 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index e7256789..d016124b 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -406,7 +406,7 @@ sed "s,@@@serverip@@@,$serverip," -i /etc/machine-setup
# ... or ldap if available (in background)
[ -n "$ldap" ] && ldapconf &
# ... or via (t)ftp/http file get (in background)
-[ -n "$file" ] && fileget &
+[ -n "$file" ] && fileget
runinithook '15-have-ip-config'
@@ -810,6 +810,8 @@ runinithook '80-after-plugins'
# create links for initial stage4 boot scripts
initial_boot $D_INITSCRIPTS
+runinithook '85-have-initial-boot'
+
# post init for some distro specific
postinit
[ -s /initramfs/postinit.local ] && {
@@ -823,6 +825,8 @@ postinit
# start a debug shell in higher debug levels
[ $DEBUGLEVEL -gt 2 -a $DEBUGLEVEL != 8 ] && /bin/sh
+runinithook '90-postinit-done'
+
# unmount the bind mounted modules directory
export ticks
for ticks in 0 1 2 5 10 20 30; do
@@ -845,6 +849,8 @@ umount -n /proc/bus/usb >/dev/null 2>&1
chmod 1777 /mnt/dev/shm /mnt/tmp /mnt/tmp/scratch 2>/dev/null
mount -n --move /dev /mnt/dev
+runinithook '95-cleanup'
+
# kill hwautocfg, servconfig
killall -9 hwautocfg servconfig 2>/mnt/dev/null
# runtimer