From 4df438259c0b9be0c040fcc042867186922ba04f Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 24 Mar 2008 19:12:49 +0000 Subject: * 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 --- initramfs/initrd-stuff/init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'initramfs/initrd-stuff/init') 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 -- cgit v1.2.3-55-g7522