<p dir="ltr">I think there is another bug report, from which I've concluded to drop off this section of the code because it has too many erroneous behavior. </p>
<p dir="ltr">When I have access to the laptop, I'll attach that bug report</p>
<p dir="ltr">s3nt fr0m a $martph0ne, excuse typ0s</p>
<div class="gmail_quote">On Aug 18, 2014 8:51 PM, "Powers, Joshua" <<a href="mailto:joshua.powers@hp.com">joshua.powers@hp.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Package: open-iscsi<br>
Version: 2.0.873+git0.3b4b4500-2<br>
Severity: wishlist<br>
Tags: patch<br>
<br>
When open-iscsi is installed, but does not have anything configured the user will see an unnecessary error message:<br>
"[FAIL] Mounting network filesystems: failed!"<br>
<br>
The patch below removes this message by determining if we ever attempted to mount something. If we did not then the message will no longer appear.<br>
<br>
Thanks for considering the patch,<br>
Josh<br>
<br>
--- debian/open-iscsi.init    2014-08-11 14:37:43.784410000 +0000<br>
+++ debian/open-iscsi.init    2014-08-11 14:38:47.388410000 +0000<br>
@@ -126,6 +126,7 @@<br>
        # Now let's mount<br>
        log_daemon_msg "Mounting network filesystems"<br>
        MOUNT_RESULT=1<br>
+       MOUNT_ATTEMPT=0<br>
        fs=<br>
        grep -w _netdev /etc/fstab | \<br>
            while read DEV MTPT FSTYPE OPTS REST; do<br>
@@ -150,6 +151,7 @@<br>
            done | \<br>
            while read fs; do<br>
                set -- $(eval echo "$fs" | sed 's@:@ @')<br>
+               MOUNT_ATTEMPT=1<br>
                case "$1" in<br>
                    swap)<br>
                        swapon $2<br>
@@ -168,7 +170,7 @@<br>
<br>
<br>
<br>
-       log_end_msg $MOUNT_RESULT<br>
+       log_end_msg $((MOUNT_RESULT * MOUNT_ATTEMPT))<br>
 }<br>
<br>
 starttargets() {<br>
<br>
</blockquote></div>