diff options
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-x | initramfs/initrd-stuff/init | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 0303d392..9c87ce79 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -198,7 +198,7 @@ in $0\ncountry=\"${COUNTRY}\"" >> /etc/machine-setup echo -e "\n# nfs root information gotten via kernel command \ line in $0\n#nfsroot=\"${nfsserver}:${nfspath}\"\n" >> /etc/machine-setup ;; - *nbd) + *nbd*) nbdmod=$srvproto # get settings for nbd-client, filesystem equals to path in URI # notation @@ -389,6 +389,18 @@ if [ -n "${nbdmod}" ] ; then # switch off unneeded block read ahead echo "0" > /sys/block/nbd0/queue/read_ahead_kb ;; + # dnbd2 by Vito di Leo + dnbd2) + RDEV=/dev/vnbd0 + waitfor "${RDEV}" 20000 || error "$init_nbddev" + echo $nbdhost $nbdport > /sys/block/vnbd0/server0/sock + echo 1 > /sys/block/vnbd0/config/vid + echo 1 > /sys/block/vnbd0/config/rid + echo 1 > /sys/block/vnbd0/config/running + echo noop > /sys/block/vnbd0/queue/scheduler + # switch off unneeded block read ahead + echo "0" > /sys/block/vnbd0/queue/read_ahead_kb + ;; # dnbd by Thorsten Zitterell dnbd) # quickhack |