diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-03-26 20:20:31 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-01 08:14:57 +0100 |
commit | 3a5336108433ed99e859e812d4bc036a9c5a8223 (patch) | |
tree | 59cc24d3948d19e42b3e981a48060569850f55eb /scripts/lib/wic/partition.py | |
parent | a7f22bd46f169942f5678532556729f98912647c (diff) | |
download | poky-3a5336108433ed99e859e812d4bc036a9c5a8223.tar.gz |
wic: remove fsimage plugin
Removed fsimage plugin and prepare_rootfs_from_fs_image API as
they duplicate functionality of rawcopy plugin. Fsimage plugin makes
wic to remove the image artifact from deployment directory, which
can cause problems too.
[YOCTO #10618]
(From OE-Core rev: 9a470752f5698f791f8f78e28d163a0b9c695186)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.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 | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 8e32afcd89..647a6fb3a7 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -193,19 +193,6 @@ class Partition(): | |||
193 | "larger (%d kB) than its allowed size %d kB" % | 193 | "larger (%d kB) than its allowed size %d kB" % |
194 | (self.mountpoint, self.size, self.fixed_size)) | 194 | (self.mountpoint, self.size, self.fixed_size)) |
195 | 195 | ||
196 | def prepare_rootfs_from_fs_image(self, cr_workdir, oe_builddir, | ||
197 | rootfs_dir): | ||
198 | """ | ||
199 | Handle an already-created partition e.g. xxx.ext3 | ||
200 | """ | ||
201 | rootfs = oe_builddir | ||
202 | du_cmd = "du -Lbks %s" % rootfs | ||
203 | out = exec_cmd(du_cmd) | ||
204 | rootfs_size = out.split()[0] | ||
205 | |||
206 | self.size = int(rootfs_size) | ||
207 | self.source_file = rootfs | ||
208 | |||
209 | def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, | 196 | def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, |
210 | native_sysroot): | 197 | native_sysroot): |
211 | """ | 198 | """ |