]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic/engine: fix copying directories into wic image with ext* partition
authorDragomir, Daniel <daniel.dragomir@windriver.com>
Fri, 3 Oct 2025 20:31:30 +0000 (23:31 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Dec 2025 18:02:19 +0000 (18:02 +0000)
commit4fc3b42774c007c5ceaa3681a56c2e7474db4c40
tree348f11f3906b0225375a8b45a3235a82bb49d14f
parent2e10e9a50f12d5de3d22fbed59b65461afa3fa84
wic/engine: fix copying directories into wic image with ext* partition

wic uses debugfs to write on ext* partitions, but debugfs can only
write to the current working directory and it cannot copy complete
directory trees. Running 'wic ls' on a copied directory show this:
    -l: Ext2 inode is not a directory

Fix this by creating a command list for debugfs (-f parameter) when
recursive parsing the host directory in order to create a similar
directory structure (mkdir) and copy files (write) on each level
into the destination directory from the wic's ext* partition.

Signed-off-by: Daniel Dragomir <daniel.dragomir@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
scripts/lib/wic/engine.py