Bug 1146275
Summary: | regression setting root password with virt-builder/virt-customize | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Cole Robinson <crobinso> | ||||
Component: | libguestfs | Assignee: | Pino Toscano <ptoscano> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 21 | CC: | mbooth, ptoscano, rjones, virt-maint | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1147065 (view as bug list) | Environment: | |||||
Last Closed: | 2014-09-29 12:38:36 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1147065 | ||||||
Attachments: |
|
Description
Cole Robinson
2014-09-24 22:21:22 UTC
Created attachment 940938 [details]
Output from: sudo virt-customize -v -x --password root:password:1234AA -a fedora-20.img
Something to do with now using Augeas to edit the /etc/shadow file? (In reply to Richard W.M. Jones from comment #2) > Something to do with now using Augeas to edit the /etc/shadow file? Indeed, the way Augeas writes the new file loses the SELinux context. Luckly we have the API for copying attributes. Patches posted: https://www.redhat.com/archives/libguestfs/2014-September/msg00281.html https://www.redhat.com/archives/libguestfs/2014-September/msg00282.html Fixed with https://github.com/libguestfs/libguestfs/commit/5f9437ca4bb842b1e8ae91ffbf3c73820780c5a6 https://github.com/libguestfs/libguestfs/commit/35daabed8f6da1b6039c4fd32848dcff6347e0dd which are in libguestfs >= 1.27.56. |