diff options
Diffstat (limited to 'initrd/initrd-stuff')
| -rwxr-xr-x | initrd/initrd-stuff/bin/servconfig | 4 | ||||
| -rwxr-xr-x | initrd/initrd-stuff/init | 4 |
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 "" |
