- Add open-iscsi and watchdog to Recommends.
* Check for blank exports file (Closes: #673798).
* Add 18-osd_login-sbindir.patch to avoid FTBFS
+ * Add 19-iscsiadm-path.patch so osd_login works
-- Luk Claes <luk@debian.org> Fri, 25 May 2012 19:16:54 +0200
--- /dev/null
+Index: nfs-utils/utils/osd_login/osd_login
+===================================================================
+--- nfs-utils.orig/utils/osd_login/osd_login 2012-05-25 20:15:33.000000000 +0200
++++ nfs-utils/utils/osd_login/osd_login 2012-05-25 20:40:37.000000000 +0200
+@@ -25,8 +25,6 @@
+
+ PATH="/sbin:/usr/sbin:/bin:/usr/bin"
+
+-iscsiadm=/sbin/iscsiadm
+-
+ PARENT_PID=$BASHPID
+ WATCHDOG_TIMEOUT=15
+
+@@ -90,8 +88,8 @@
+ login_iscsi_osd()
+ {
+ echo "login into: $1"
+- if ! $iscsiadm -m discovery -o nonpersistent -t sendtargets -p $1 --login; then
+- echo "$iscsiadm -m discovery -t sendtargets -p $1 --login returned error $? !"
++ if ! iscsiadm -m discovery -o nonpersistent -t sendtargets -p $1 --login; then
++ echo "iscsiadm -m discovery -t sendtargets -p $1 --login returned error $? !"
+ sleep 1;
+ fi
+ }