]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: Add --exclude-path option to rootfs source plugin.
authorKristian Amlie <kristian.amlie@mender.io>
Mon, 6 Feb 2017 16:16:46 +0000 (17:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Feb 2017 04:06:44 +0000 (20:06 -0800)
commitf6a064d969f4149b2152ed2e851828acaaec07ca
tree4f4827393f14b47774169b304a38d0aba377ea31
parent7cb17e3e9ecd82764ed317f221bc60127dad197d
wic: Add --exclude-path option to rootfs source plugin.

It will omit the given path from the resulting partition, and if the
given path ends in a slash, it will only delete the content, and keep
the directory.

Since mkfs only accepts whole directories as input, we need to copy
the rootfs directory to the workdir so that we can selectively delete
files from it.

Since we want to use the copyhardlinktree() function, we need to put
the generic oe lib in the module search path.

(From OE-Core rev: 6602392db3d391d926dead49fcc54326015cfe35)

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/help.py
scripts/lib/wic/ksparser.py
scripts/lib/wic/partition.py
scripts/lib/wic/plugins/source/rootfs.py
scripts/wic