]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Add 19-iscsiadm-path.patch so osd_login works
authorLuk Claes <luk@debian.org>
Fri, 25 May 2012 18:41:41 +0000 (20:41 +0200)
committerLuk Claes <luk@debian.org>
Fri, 25 May 2012 18:41:41 +0000 (20:41 +0200)
debian/changelog
debian/patches/19-iscsiadm-path.patch [new file with mode: 0644]
debian/patches/series

index 267c5756b959fff53c3a8b40e5226f52f3247e50..962c3ae969e94eda1648ad8227bdac0471f17ea9 100644 (file)
@@ -7,6 +7,7 @@ nfs-utils (1:1.2.6-1) UNRELEASED; urgency=low
       - 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
 
diff --git a/debian/patches/19-iscsiadm-path.patch b/debian/patches/19-iscsiadm-path.patch
new file mode 100644 (file)
index 0000000..0830a10
--- /dev/null
@@ -0,0 +1,24 @@
+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
+ }
index a746b897441792bbfcc5144e92834d632ca14b15..0a0c3fa52507b736bedeb2cc7f4abf3c2c721585 100644 (file)
@@ -5,3 +5,4 @@
 16-mount.nfs.man-update-distinction-between-fstype.patch
 17-multiarch-kerberos-paths.patch
 18-osd_login-sbindir.patch
+19-iscsiadm-path.patch