summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorMichael Janczyk2006-09-29 21:28:19 +0200
committerMichael Janczyk2006-09-29 21:28:19 +0200
commitd50ef1fbbb873ae8fa059255acb8f3d8362b3f71 (patch)
treee083f51d32900be8c08f687caef1bdbcc3d3818e /initramfs
parent* some cleanup and clearifications (diff)
downloadcore-d50ef1fbbb873ae8fa059255acb8f3d8362b3f71.tar.gz
core-d50ef1fbbb873ae8fa059255acb8f3d8362b3f71.tar.xz
core-d50ef1fbbb873ae8fa059255acb8f3d8362b3f71.zip
Problem with nbd-client timing fixed in init. Still problem with
tftpboot prefix in /etc/functions, so reset to /tftpboot/client-conf as prefix. Please change only if fixed :-) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@415 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/initrd-stuff/etc/functions12
-rwxr-xr-xinitramfs/initrd-stuff/init5
2 files changed, 10 insertions, 7 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index cefd7a26..7f7f552d 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -2,7 +2,7 @@
# (included by init, hwautocfg, servconfig, ... within OpenSLX initial
# ramfs)
#
-# Dirk von Suchodoletz <dvs@OpenSLX.com>, 26-09-2006
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 29-09-2006
# Felix Endres, 30-04-2006
# <mj0@uni-freiburg.de> (xenbr), 27-09-2006
# Tobias Maier
@@ -339,8 +339,9 @@ done
if [ "$dhcp" = "none" ] ; then
error "$error_nodhcp" nonfatal
else
- # ensure the interface is up
- ipsetup 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eth0 &
+ # ensure the interface is up - might produce conflicts - nbd could
+ # fail!!
+ # ipsetup 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eth0 &
[ -f /lib/modules/@@@KERNVER@@@/kernel/net/packet/af_packet.ko ] && \
loadmod /lib/modules/@@@KERNVER@@@/kernel/net/packet/af_packet.ko \
"needed for dhcp";
@@ -432,8 +433,9 @@ if [ -n "$FILESRC" ] ; then
tftpgetunpack $tftp $cfgfile $tftpserver
else
# we expect the tftp-server to serve from $SLX_TFTPBOOT_PATH, so we
- # just use the relative path from that here:
- cfgdir="client-config"
+ # fixme!!!! just use the relative path from that here:
+ # the variable is nowhere to be seen, so it cannot be used here!?!?
+ cfgdir="/tftpboot/client-conf"
local tftpserver=$serverip
# try to get configuration files successively; start with distro client
# and try last distro default ...
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index 6353d286..41a14b22 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -282,8 +282,9 @@ if [ -n "${nbdmod}" ] ; then
nbd)
RDEV=/dev/nbd0
waitfor "${RDEV}" 30000 || error "$init_nbddev"
- echo "0" > /sys/block/nbd0/queue/read_ahead_kb
- nbd-client $nbdhost $nbdport ${RDEV} || error "$init_nbdcl"
+ while ! nbd-client $nbdhost $nbdport ${RDEV} ; do
+ usleep 10
+ done
usleep 10
# switch off unneeded block read ahead
echo "0" > /sys/block/nbd0/queue/read_ahead_kb