/etc/init.d/iscsitarget broken with migration to /bin/dash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iscsitarget (Ubuntu) |
Fix Released
|
Low
|
Alvin Cura | ||
Gutsy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hardy |
Fix Released
|
Low
|
Alvin Cura |
Bug Description
Binary package hint: iscsitarget
Errors are as follows:
root@xen1:/usr/src# apt-get install iscsitarget
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
iscsitarget
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.6kB of archives.
After unpacking 213kB of additional disk space will be used.
Get:1 http://
Fetched 58.6kB in 1s (48.7kB/s)
Selecting previously deselected package iscsitarget.
(Reading database ... 100337 files and directories currently installed.)
Unpacking iscsitarget (from .../iscsitarget
Setting up iscsitarget (0.4.15-2) ...
Starting iSCSI enterprise target service: [: 142: ==: unexpected operator
failed.
-----
Workaround/Cause is pretty straightforward.
/bin/sh is a link to /bin/dash now, instead of /bin/sh. rpmstrap had a similar problem (reference bug 64032 for rpmstrap).
Workaround is simple, set to #!/bin/bash
-----
Can a MOTU check this out?
Thanks!
- alvinc
Related branches
Changed in gutsy-backports: | |
assignee: | nobody → alvinc |
Changed in iscsitarget: | |
assignee: | nobody → alvinc |
Fix attached