Bug 90561 - gen_init_cpio allow to add a file on a non-existent directory
Summary: gen_init_cpio allow to add a file on a non-existent directory
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-01 20:00 UTC by Jesús Leganés Combarro
Modified: 2015-01-04 19:39 UTC (History)
0 users

See Also:
Kernel Version: 3.18.1
Tree: Mainline
Regression: No


Attachments
attachment-16404-0.html (352 bytes, text/html)
2015-01-04 19:39 UTC, Jesús Leganés Combarro
Details

Description Jesús Leganés Combarro 2015-01-01 20:00:59 UTC
When using a cpio.txt file for usr/gen_init_cpio, if you set to add a file on a directory on the initramfs that doesn't exists, the .cpio.gz file is correctly created and by de-compressing it you can find the file there, but later the initramfs doesn't have this file in memory. There are two options to fix this:

* allow to add the file without defining its parent directory
* raise an error if trying to add a file on a non-existeng directory on the cpio.txt file

I think probably it's easier, more correct and error-proof the second option, since it notify the developer to add that directory entry, giving him more control.

You can see this behaviour at http://www.openwall.com/lists/musl/2014/12/31/8
Comment 1 Jean Delvare 2015-01-04 19:26:39 UTC
This has nothing to do with i2c-tools.
Comment 2 Jesús Leganés Combarro 2015-01-04 19:39:06 UTC
Created attachment 162381 [details]
attachment-16404-0.html

> This has nothing to do with i2c-tools.

It's true, sorry, when I filled the formulary I selected "tools" and under
it I didn't see the only option was i2c-tools and was already selected.
Thank you by moving it to "others" if you think it's a better place for
this bug issue :-)

Note You need to log in before you can comment on or make changes to this bug.