diff options
author | Kristian Amlie <kristian.amlie@mender.io> | 2017-02-06 17:16:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-15 20:06:44 -0800 |
commit | f6a064d969f4149b2152ed2e851828acaaec07ca (patch) | |
tree | 4f4827393f14b47774169b304a38d0aba377ea31 /scripts/lib/wic/partition.py | |
parent | 7cb17e3e9ecd82764ed317f221bc60127dad197d (diff) | |
download | poky-f6a064d969f4149b2152ed2e851828acaaec07ca.tar.gz |
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>
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 754ad757d0..1221f691dc 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -40,6 +40,7 @@ class Partition(): | |||
40 | self.disk = args.disk | 40 | self.disk = args.disk |
41 | self.device = None | 41 | self.device = None |
42 | self.extra_space = args.extra_space | 42 | self.extra_space = args.extra_space |
43 | self.exclude_path = args.exclude_path | ||
43 | self.fsopts = args.fsopts | 44 | self.fsopts = args.fsopts |
44 | self.fstype = args.fstype | 45 | self.fstype = args.fstype |
45 | self.label = args.label | 46 | self.label = args.label |