summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-01-20 11:31:01 +0100
committerDirk von Suchodoletz2006-01-20 11:31:01 +0100
commit4fca608b84d4bc1c5abe78cb5956ff17c924e2c2 (patch)
tree360f037abe32d54e3a64f9456c922c7b4ded58a1 /initrd/initrd-stuff
parentAbstimmung der Debuglevel (siehe auch /trac Wiki) (diff)
downloadcore-4fca608b84d4bc1c5abe78cb5956ff17c924e2c2.tar.gz
core-4fca608b84d4bc1c5abe78cb5956ff17c924e2c2.tar.xz
core-4fca608b84d4bc1c5abe78cb5956ff17c924e2c2.zip
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
Diffstat (limited to 'initrd/initrd-stuff')
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig4
-rwxr-xr-xinitrd/initrd-stuff/init4
2 files changed, 6 insertions, 2 deletions
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 ""