iscsitarget init.d script contains bashisms

Bug #195883 reported by PeterWoodman
6
Affects Status Importance Assigned to Milestone
iscsitarget (Debian)
Fix Released
Unknown
iscsitarget (Ubuntu)
Fix Released
Undecided
Unassigned
Gutsy
Won't Fix
Undecided
Unassigned
Hardy
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: iscsitarget

The init script included with the iscsitarget package fails to start/stop/do anything cleanly if /bin/sh doesn't point to bash. I've got a new 7.10 install, in which /bin/sh links to /bin/dash, and the script fails ('==' isn't valid sh, and there's something else wrong with the case statement that I haven't figured out at first glance).

Changing the bang at the top to /bin/bash makes the thing work. I don't know what Ubuntu's policy is regarding relying on bash, but I'm taking the path of least resistance here.. :)

pjjw@flex:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

ii iscsitarget 0.4.15-2 iSCSI Enterprise Target userland tools

Revision history for this message
Wido den Hollander (wido) wrote :

I can confirm this in Ubuntu 7.10

Changed in iscsitarget:
status: New → Confirmed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Fixed in the release version.

Changed in iscsitarget:
status: New → Confirmed
status: Confirmed → Fix Released
Changed in iscsitarget:
status: Unknown → Fix Released
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Gutsy Gibbon 7.10 has reached its end of life -
http://www.ubuntu.com/news/ubuntu-7.10-eol . As a result, we are closing the
Gutsy task.

Changed in iscsitarget (Ubuntu Gutsy):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.