From 4fca608b84d4bc1c5abe78cb5956ff17c924e2c2 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Fri, 20 Jan 2006 10:31:01 +0000 Subject: Boot.ld als erstes Runlevelskript (per distro-spez. Funktion). git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@27 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/bin/servconfig | 4 +++- initrd/initrd-stuff/init | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'initrd/initrd-stuff') diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index 11b13998..bff7518e 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -99,7 +99,9 @@ case ${DISTRO} in rm -f /mnt/etc/$i/* done count=10 - for i in ${D_INITSCRIPTS}; do + # boot.ld is a special runlevel script generated within initial ramdisk + # which should be executed before the rest + for i in boot.ld ${D_INITSCRIPTS}; do count=`expr $count + 1` revcnt=`expr 41 - $count` ln -sf /etc${D_INITDIR}/$i /mnt/etc/init.d/${SUSESPECIFICSUBDIR}S${count}$i diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 3654c51c..9247e539 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -294,7 +294,7 @@ else # run some specific stuff !? fi # script for stuff to execute during early bootup -echo -e "#!/bin/sh\n# skeleton written from $0" >/mnt/etc/${D_INITDIR}/boot.ld +d_mkbootld init echo "fs complete" >/tmp/fscmpl # write debug file information after filesystem setup completed @@ -353,6 +353,8 @@ killall -9 dhcpcd dhclient pump 2>/dev/null # unmount the bind mounted modules directory umount -n /lib/modules/${KERNEL} || error "Unmount of the kernel \ modules directory failed for some reason." +# close script for stuff to execute during early bootup +d_mkbootld close # reset hotplug echo "/sbin/hotplug" > /proc/sys/kernel/hotplug echo "" -- cgit v1.2.3-55-g7522