diff options
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 | """ |
