summaryrefslogtreecommitdiffstats
path: root/initrd/mkdxsinitrd
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-04-09 16:08:56 +0200
committerDirk von Suchodoletz2006-04-09 16:08:56 +0200
commitb2a4079c3d1da7632756a31c9c82ffe3f949eadb (patch)
treec6b18993356a4c5543e9128fda84cec6ef96e0fd /initrd/mkdxsinitrd
parentfix for ip= line configuration problem with etherboot (diff)
downloadcore-b2a4079c3d1da7632756a31c9c82ffe3f949eadb.tar.gz
core-b2a4079c3d1da7632756a31c9c82ffe3f949eadb.tar.xz
core-b2a4079c3d1da7632756a31c9c82ffe3f949eadb.zip
added bootlocal script (user def. script to run in normal boot), ensured
ash shell compatibility of scripts ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@173 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/mkdxsinitrd')
-rwxr-xr-xinitrd/mkdxsinitrd16
1 files changed, 11 insertions, 5 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd
index 0f56dc8c..6286dfa5 100755
--- a/initrd/mkdxsinitrd
+++ b/initrd/mkdxsinitrd
@@ -304,7 +304,7 @@ mknod ${INSTDIR}/tmp/null c 1 3 &>/dev/null
mknod ${INSTDIR}/tmp/kmsg c 1 11 &>/dev/null
#if no klibc - klibc shell seems not to have enough functionality :-(
-for bbins in bash ash sh; do
+for bbins in ash ash sh; do
if cobi ${bbins} bin ; then
ln -fs ${bbins} ${INSTDIR}/bin/sh
[ "${bbins}" != "bash" ] && ln -fs ${bbins} ${INSTDIR}/bin/bash
@@ -342,6 +342,7 @@ for tftp in atftp tftp ; do
binfinder $tftp && break
done
cobi $tftp bin
+cp /lib/libnss_files.so.2 ${INSTDIR}/lib
# debug binaries
for bbins in \
@@ -483,13 +484,18 @@ chmod 755 ${INSTDIR}/init \
if [ -f /etc/dxs/client.cfg/machine-setup.default ] ; then
cp /etc/dxs/client.cfg/machine-setup.default \
${INSTDIR}/etc/machine-setup
-elif [ -f ../installer/default_files/machine-setup_default ] ; then
- cp ../installer/default_files/machine-setup_default \
+elif [ -f ../installer/default_files/machine-setup.default ] ; then
+ cp ../installer/default_files/machine-setup.default \
${INSTDIR}/etc/machine-setup
else
- #inserted password for root for debugging purposes
+ #inserted password for root for debugging purposes
echo -e "# default for machine-setup does not exist\n# root logins are \
-disabled\nroot_pw='"'$1$T7VD/mmQ$aCP1WEaWplEsHe9khv4kK.'"'" > ${INSTDIR}/etc/machine-setup
+disabled\nroot_pw='"'$1$T7VD/mmQ$aCP1WEaWplEsHe9khv4kK.'"'" \
+ > ${INSTDIR}/etc/machine-setup
+fi
+# custom init script for normal client start after initramfs
+if [ -f /etc/dxs/client.cfg/boot.local.default ] ; then
+ cp /etc/dxs/client.cfg/boot.local.default ${INSTDIR}/etc/boot.local
fi
# finally copy vendor-supplied preinit and postinit files