Bug 1260788
Summary: | Dracut --include not creating file (or creating empty directory) | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | keith | |
Component: | dracut | Assignee: | dracut-maint-list | |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 22 | CC: | dracut-maint-list, harald, jonathan, Mikhail_Campos-Guadamuz, zbyszek | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1350879 (view as bug list) | Environment: | ||
Last Closed: | 2016-07-19 17:48:21 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: | 1350879 |
Description
keith
2015-09-07 18:48:35 UTC
# echo test > test # ls -l test -rwxrwxr-x 1 harald harald 5 8. Sep 10:34 test # dracut -f --include $(pwd)/test /test test.img # lsinitrd test.img /test test # lsinitrd test.img |fgrep test Image: test.img: 12M Arguments: -f --include '/home/harald/test' '/test' -rwxrwxr-x 1 root root 5 Sep 8 10:34 test Works for me with the full path. I can confirm the bug against fc23. It seems to work under the normal, user but only when full path is used. Moreover, it's broken when running under the root (even with full path): 1. su - 2. ls -la mycfg.conf -rw-r--r-- 1 root root 27 Jun 28 16:47 mycfg.conf 3. dracut --include $(pwd)/mycfg.cfg /etc/myconf.conf -f myinitrd.img 4. lsinitrd myinitrd.img | grep myconf Arguments: -f --include '/tmp/mycfg.cfg' '/etc/myconf.conf' drwxr-xr-x 2 root root 0 Jun 28 17:33 etc/myconf.conf It creates file of zero size, but the target one was not empty. Moreover, we have misleading information about --include option using man: "...--include can only be specified once." and later in the man: "--include <SOURCE> <TARGET> ... This parameter can be specified multiple times." Moreover, consequent invocation of dracut --include deletes previous added information (not sure whether it's supposed to be or not). Version-Release number of selected component (if applicable): 043-60.git20150811.fc23 Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |