Bug 1155586
Summary: | supermin: ext2fs-c.c:584: ext2_copy_file: Assertion `n == 1 || dest[n-1] != '/'' failed. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dr. David Alan Gilbert <dgilbert> |
Component: | supermin | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | ptoscano, rjones |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | supermin-5.1.10-2.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-25 21:53:08 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: |
Description
Dr. David Alan Gilbert
2014-10-22 12:40:58 UTC
The reason is because the package (cjkuni-uming-fonts) has a symlink which contains a trailing slash: lrwxrwxrwx 1 root root 30 Jun 7 06:53 /etc/X11/fontpath.d/cjkuni-uming-fonts -> /usr/share/fonts/cjkuni-uming/ which is something I'd not considered when writing this code. A simple reproducer of this bug is: $ supermin --prepare -o /tmp/supermin.d cjkuni-uming-fonts $ supermin --build -f ext2 -o /tmp/appliance.d /tmp/supermin.d supermin: ext2fs-c.c:584: ext2_copy_file: Assertion `n == 1 || dest[n-1] != '/'' failed. Aborted Adding -v -v -v to that second command: [...] supermin: ext2: copying files from host filesystem supermin: ext2: copy_file /usr -> /usr supermin: ext2: copy_file /usr/bin -> /usr/bin supermin: ext2: copy_file /bin -> /bin supermin: ext2: copy_file /boot -> /boot supermin: ext2: copy_file /dev -> /dev supermin: ext2: copy_file /etc -> /etc supermin: ext2: copy_file /etc/X11 -> /etc/X11 supermin: ext2: copy_file /etc/X11/applnk -> /etc/X11/applnk supermin: ext2: copy_file /etc/X11/fontpath.d -> /etc/X11/fontpath.d supermin: ext2: copy_file /usr/share -> /usr/share supermin: ext2: copy_file /usr/share/fonts -> /usr/share/fonts supermin: ext2: copy_file /usr/share/fonts/cjkuni-uming/ -> /usr/share/fonts/cjkuni-uming/ supermin: ext2fs-c.c:584: ext2_copy_file: Assertion `n == 1 || dest[n-1] != '/'' failed. Aborted Anyhow, this is fixed by the following commit: https://github.com/libguestfs/supermin/commit/d7bb984889257f5b87963dcca6456fc6e4cc804e supermin-5.1.10-2.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/supermin-5.1.10-2.fc21 supermin-5.1.10-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. Yep, seems to work. |