Description: nbd-client isn't sync operation and sha1sum is wrong TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . ldm (2:2.2.18-1+lliurex6) xenial; urgency=medium . * Add sleep to fix non block nbd-client for kernels above 4.4.0-109.132 Author: Raul Rodrigo Segura --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ldm-2.2.18.orig/rc.d/I01-nbd-checkupdate +++ ldm-2.2.18/rc.d/I01-nbd-checkupdate @@ -11,6 +11,7 @@ if [ -n "$NBD_ROOT_NAME" ]; then else nbd-client $NBD_ROOT_HOST $NBD_ROOT_PORT /dev/nbd9 fi +sleep 1 NEW=$(dd if=/dev/nbd9 of=/dev/stdout bs=64 count=1 2> /dev/zero | sha1sum -) PID=$(nbd-client -c /dev/nbd9) nbd-client -d /dev/nbd9