iscsitarget init.d script contains bashisms
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_
DISTRIB_
DISTRIB_
ii iscsitarget 0.4.15-2 iSCSI Enterprise Target userland tools
Changed in iscsitarget: | |
status: | Unknown → Fix Released |
I can confirm this in Ubuntu 7.10