Bug 90561

Summary: gen_init_cpio allow to add a file on a non-existent directory
Product: Other Reporter: Jesús Leganés Combarro (piranna)
Component: OtherAssignee: other_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.18.1 Subsystem:
Regression: No Bisected commit-id:
Attachments: attachment-16404-0.html

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 :-)