| Summary: | 1.5.3 populate-extfs quoting issues | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Richard Purdie <richard.purdie> |
| Component: | devtools / tool chain | Assignee: | Chen Qi <Qi.Chen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium+ | CC: | liezhi.yang, meta.mr.watcher, meta.watcher |
| Version: | 1.7 | ||
| Target Milestone: | 1.5.3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Richard Purdie
2014-07-03 14:26:31 UTC
Its possible http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dora&id=4a18e162d841a6b52a022d4c76b0d60bbd77d5f8 may have fixed this Further tests show the same issue is present after that patch so we have a release blocker for 1.5.3 with this bug There are actually two problems. 1. The quotation mark is special for debugfs. If the file name contains " in it, then we have to replace " with "" so that debugfs could correctly recognize it. 2. We should quote the filenames in the debugfs commands. e.g. Instead of writing: echo "mkdir $TGT" We should write: echo "mkdir \"$TGT\"" //Chen Qi Module: openembedded-core.git Branch: dora Commit: 24f17607e996c499c8f86eda0588d02af1e960b9 URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=24f17607e996c499c8f86eda0588d02af1e960b9 Author: Chen Qi <Qi.Chen@windriver.com> Date: Tue Jul 8 18:38:15 2014 +0800 populate-extfs.sh: fix to handle special file names correctly `debugfs' treats spaces and "" specially. So when we are dealing with file names, great care should be taken to make sure that `debugfs' recognizes file names correctly. The basic solution here is: 1. Use quotation marks to handle spaces correctly. 2. Replace "xxx" with ""xxx"" so that debugfs knows that the quotation marks are parts of the file name. [YOCTO #6503] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |