Bug 753887

Summary: Invalid post scriptlet -> adds /bin/dash to /etc/shells everytime you install package
Product: [Fedora] Fedora Reporter: Roman Rakus <rrakus>
Component: dashAssignee: Petr Šabata <psabata>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: huzaifas, maxim, psabata, rtguille, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dash-0.5.6-6.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-02 21:29:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roman Rakus 2011-11-14 18:52:27 UTC
change
grep -qF '^/bin/dash$'
to
grep -qF '/bin/dash'
or
grep -q '^/bin/dash$'

Comment 1 Fedora Update System 2011-11-15 09:36:57 UTC
dash-0.5.6-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/dash-0.5.6-6.fc16

Comment 2 Fedora Update System 2011-11-16 00:29:37 UTC
Package dash-0.5.6-6.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dash-0.5.6-6.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15957
then log in and leave karma (feedback).

Comment 3 Reartes Guillermo 2011-11-19 22:21:08 UTC
I installed F16 yesterday.
Today i installed virtualbox via repo and it complained that something about a shell... when i tried to install the extentions, but failed to do so.

And to my surprise /bin/dash is in the /etc/shells but /bin/bash is not! No wonder
it complained about the shell...
I fixed the issue adding bash. Also new users (but the first created user does have the correct /bin/bash shell) have their default shell set as dash. In fact, i did not know dash before this issue.

# yum list installed dash
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
dash.x86_64    0.5.6-5.fc15         @updates

Comment 4 Petr Šabata 2011-11-21 09:54:36 UTC
(In reply to comment #3)
> I installed F16 yesterday.
> Today i installed virtualbox via repo and it complained that something about a
> shell... when i tried to install the extentions, but failed to do so.
> 
> And to my surprise /bin/dash is in the /etc/shells but /bin/bash is not! No
> wonder
> it complained about the shell...
> I fixed the issue adding bash. Also new users (but the first created user does
> have the correct /bin/bash shell) have their default shell set as dash. In
> fact, i did not know dash before this issue.
> 
> # yum list installed dash
> Loaded plugins: langpacks, presto, refresh-packagekit
> Installed Packages
> dash.x86_64    0.5.6-5.fc15         @updates

The new 0.5.6-5.fc15 and 0.5.6-6.fc16 builds (see above) shouldn't re-add /bin/dash to /etc/shells on every installation or upgrade.

Missing /bin/bash is a different issue, a bash bug.  It's also been already resolved.  Reinstalling (or update of) /bin/bash will fix the issue.

Comment 5 Fedora Update System 2011-12-02 21:29:59 UTC
dash-0.5.6-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.