summaryrefslogtreecommitdiffstats
path: root/src/initramfs/scripts/init
diff options
context:
space:
mode:
Diffstat (limited to 'src/initramfs/scripts/init')
-rwxr-xr-xsrc/initramfs/scripts/init12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init
index 08374e7c..b23337c6 100755
--- a/src/initramfs/scripts/init
+++ b/src/initramfs/scripts/init
@@ -270,7 +270,8 @@ line in $0\nnfsserver=\"${nfsserver}\"\nnfspath=\"${nfspath}\"" \
bldhost=$(uri_token $rootfs server)
bldport=$(uri_token $rootfs port)
bldrfst=$(uri_token $rootfs path)
- bldrfst=${bldrfst#/*}
+ bldopt=${bldrfst%/*}
+ bldrfst=${bldrfst##*/}
;;
aoe)
echo "Not implemented yet"
@@ -548,6 +549,15 @@ if [ -n "${bldmod}" ] ; then
echo deadline > /sys/block/nbd0/queue/scheduler
# echo "32" > /sys/block/nbd0/queue/read_ahead_kb
;;
+ # dnbd3 by Johann Latocha
+ dnbd3)
+ RDEV=/dev/dnbd0
+ waitfor "${RDEV}" 20000 || error "$init_nbddev"
+ i=0
+ vid=${${blkopt#/*}%%/*}
+ rid=${${${blkopt#/*}#*/}%%/*}
+ dnbd3-client -h $bldhost -p $bldport -d ${RDEV} -v $vid -r $rid
+ ;;
# dnbd2 by Vito Di Leo
dnbd2)
RDEV=/dev/vnbd0