diff options
author | Dirk von Suchodoletz | 2009-07-18 22:47:56 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-07-18 22:47:56 +0200 |
commit | 05e8e2711714eb7ca161367a8b2c2bd3181584c7 (patch) | |
tree | 06c28f53bce7f69b10062a20a1a0f2c30baf9527 /initramfs | |
parent | Minor extension for partition mounting ... (diff) | |
download | core-05e8e2711714eb7ca161367a8b2c2bd3181584c7.tar.gz core-05e8e2711714eb7ca161367a8b2c2bd3181584c7.tar.xz core-05e8e2711714eb7ca161367a8b2c2bd3181584c7.zip |
The "persist" option to nbd-client could fix the connection losses reported ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3015 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r-- | initramfs/stage3-stuff/etc/functions | 2 | ||||
-rwxr-xr-x | initramfs/stage3-stuff/init | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions index 8eff711f..7eeb6d44 100644 --- a/initramfs/stage3-stuff/etc/functions +++ b/initramfs/stage3-stuff/etc/functions @@ -889,7 +889,7 @@ include_in_fsroot_union () { nbdport=$(uri_token $ROOTFS port) nbdrfst=$(uri_token $ROOTFS path) echo -e "(D)NBD $ROOTFS parsed to $srvproto - $nbdhost - \ - $nbdport - $nbdrfst" >> /tmp/felixtestlog + $nbdport - $nbdrfst" >> /tmp/testlog #FIXME: do mount ;; aoe) diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index fd15bd4c..3284ede7 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -514,7 +514,7 @@ if [ -n "${bldmod}" ] ; then RDEV=/dev/nbd0 waitfor "${RDEV}" 20000 || error "$init_nbddev" i=0 - while ! nbd-client $bldhost $bldport ${RDEV} ; do + while ! nbd-client $bldhost $bldport ${RDEV} -persist ; do usleep 100000 i=$(($i + 1)) if [ $i -ge 1000 ] ; then |