diff options
author | Dirk von Suchodoletz | 2006-12-15 01:39:48 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-12-15 01:39:48 +0100 |
commit | c6b758e562a15c23c991ce783a9f0b9dbb527601 (patch) | |
tree | fc57c53f69a32bccb71f5e6e8d47b758601ccb61 /initramfs/mkdxsinitrd | |
parent | Autopoweroff if stuck in Stage3/initramfs. Unfortunately rather CPU (diff) | |
download | core-c6b758e562a15c23c991ce783a9f0b9dbb527601.tar.gz core-c6b758e562a15c23c991ce783a9f0b9dbb527601.tar.xz core-c6b758e562a15c23c991ce783a9f0b9dbb527601.zip |
Added new busybox in new place (tools, Makefile, ...) Busybox has
modified switch_root (same as for run-init ...) Updated mkdxsinitrd for
busybox usage (same has to be done for slxmkramfs when tested properly)
Minor fixes ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@536 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/mkdxsinitrd')
-rwxr-xr-x | initramfs/mkdxsinitrd | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/initramfs/mkdxsinitrd b/initramfs/mkdxsinitrd index e79f7f6a..66979dc7 100755 --- a/initramfs/mkdxsinitrd +++ b/initramfs/mkdxsinitrd @@ -4,7 +4,7 @@ # ramdisks for linux diskless clients (stage2 system # setup) # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 14-12-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 15-12-2006 # Nico Dietrich # Felix Endres # <mj0@uni-freiburg.de> (xenbr), 12-12-2006 @@ -197,8 +197,8 @@ else # ugly hack for creating a general slx config file instead of "patching" # the stage3 init echo -e "slxconf_date=${DATE}\nslxconf_kernver=${KERNVER}\nslxconf_listnwmod=\"${NWMODULES}\"\nslxconf_distro=${DISTRO}-${DISTRO_VER}" > ${INSTDIR}/etc/sysconfig/slxconfig - [ -x busybox -a "$use_busybox" = 1 ] && sed -e "s,^#!/bin/sh,#!/bin/ash," \ - -i ${INSTDIR}/${FILENAME} + [ "$use_busybox" = 1 ] && sed -e "s,^#!/bin/sh,#!/bin/ash," \ + -i ${INSTDIR}/${FILENAME} fi fi } @@ -490,13 +490,13 @@ mknod ${INSTDIR}/tmp/bootsplash p &>/dev/null # test for the existance of busybox if [ "$use_busybox" = 1 ]; then - [ -x busybox ] || { + [ -x ${SLX_SHARE_PATH}/busybox/busybox ] || { unset use_busybox echo "You wanted to include busybox, but did not provide it in \ initrd/ directory."; } fi if [ -n "$use_busybox" ] ; then - cp busybox ${INSTDIR}/bin + cp ${SLX_SHARE_PATH}/busybox/busybox ${INSTDIR}/bin for bbins in [ arping ash cat chmod chown chroot cp date \ dd df dmesg echo expr fdisk free hwclock insmod ip \ kill killall ln ls lsmod mkdir mke2fs mkfs.ext2 \ @@ -551,13 +551,13 @@ else done cobi $tftp bin || echo "Program ${tftp} not found" cp /lib/libnss_files.so.2 ${INSTDIR}/lib + # one of the dhcp clients + for dhcp in dhclient dhcpcd pump ipconfig ; do + binfinder $dhcp && break; + done + cobi $dhcp bin fi -# one of the dhcp clients -for dhcp in dhclient dhcpcd pump ipconfig ; do - binfinder $dhcp && break; -done -cobi $dhcp bin mkdir -p ${INSTDIR}/var/{lib,run} # type of hotplug/udev/dev (for etc directories see above!!) |