| Summary: | Include common shells into default /etc/shells | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stephen Haffly <hafflys> |
| Component: | setup | Assignee: | Ondrej Vasik <ovasik> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | mike.cloaked, ovasik, pknirsch, psabata, rrakus |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-15 14:27:56 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Stephen Haffly
2011-11-14 13:35:12 UTC
It seems like bash-4.2.10-5.fc16.x86_64 update removed the /bin/bash record on my system. I agree with Ondrej's (bug 706147, comment #7) idea to include all shells in the file by default. Anyway - ensuring after setup update is generally not possible - I can use only lua scriptlet in setup post/postun (and with lua that could be quite hard to achieve). In addition, I can't prevent breakage/modifications by users/other packages after setup update. Adding some(all of known) new shells probably makes sense, I'll check the other shell packages and way how they add their shell to /etc/shells file. Adding Bash maintainer to cc, as he probably removed the shell by accident (based on comment #1) It was bug in previous version of bash. There is newer one. However the bug is in postun scriptlet, it means, you need to upgrade twice (or upgrade and reinstall). Double /bin/dash is bug in dash package Setup package should check all installed shells and entries in /etc/shells? It's nonsense. I would close this bug as duplicate of bug #752827. Thanks for information, Roman. This bugzilla was initiated by dash bugzilla #706147 and was more about including more shells into default /etc/shells (summary changed) - it probably makes sense to include all common shells there and don't touch /etc/shells from the shells packages. Double /bin/dash and missing /bin/bash are definitely duplicates of existing bugzillas, but with this summary this bugzilla could be kept open. (In reply to comment #5) > Double /bin/dash is bug in dash package Could you elaborate on that? Indeed it would be weird if some other package caused that but the only thing dash has been doing in past two Fedora releases is this: %post grep -qF '^/bin/dash$' /etc/shells || echo '/bin/dash' >> /etc/shells %postun if [ $1 -eq 0 ]; then sed -i '/^\/bin\/dash$/d' /etc/shells fi Maybe I'm just missing obvious... Ah, bug 753887 explains that. Never mind then :) Although this report refers to upgrade from f15 to f16 - I have a new fresh install of f16 x86_64 and up to date as of this morning. My /etc/shells contains: /sbin/nologin /bin/dash /bin/zsh I am really surprised that there is no bash or other common shells. In fact I checked with an f14 machine where the contents are: /bin/sh /bin/bash /sbin/nologin /bin/zsh /bin/dash Clearly something is missing - and maybe the error is somewhere other than the bash update? Well, it was really bug in bash, but bug in %postun scriptlet of old bash means you need two updates to get it fixed ... yum reinstall bash will fix your problem... In addition, after thinking a bit more about this idea of including all common shells into /etc/shells I think it would only cause confusion ... handling it in shell packages is much better - but it has a risk of such issues like the current one with bash update... Anyway closing this as not a bug (as I'm not going to add additional shells to default /etc/shells) ... OK you are right - I did yum reinstall bash Once done, then the VirtualBox extensions pack installed without issue - but knowing what was needed was important! Hence this was a useful report even if no change to any packages was needed. Thanks Yes, but I changed the summary of this bugzilla to be about something else than "/bin/bash" missing ... There are already several "/bin/bash missing in /etc/shells" bugzillas, so that would be a duplicate in that case. |