diff options
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/wic/partition.py | 4 | ||||
| -rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-partition.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index d4558621a9..2178321404 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
| @@ -202,7 +202,7 @@ class Partition(): | |||
| 202 | (self.mountpoint, self.size, self.fixed_size)) | 202 | (self.mountpoint, self.size, self.fixed_size)) |
| 203 | 203 | ||
| 204 | def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, | 204 | def prepare_rootfs(self, cr_workdir, oe_builddir, rootfs_dir, |
| 205 | native_sysroot): | 205 | native_sysroot, real_rootfs = True): |
| 206 | """ | 206 | """ |
| 207 | Prepare content for a rootfs partition i.e. create a partition | 207 | Prepare content for a rootfs partition i.e. create a partition |
| 208 | and fill it from a /rootfs dir. | 208 | and fill it from a /rootfs dir. |
| @@ -226,7 +226,7 @@ class Partition(): | |||
| 226 | os.remove(rootfs) | 226 | os.remove(rootfs) |
| 227 | 227 | ||
| 228 | # Get rootfs size from bitbake variable if it's not set in .ks file | 228 | # Get rootfs size from bitbake variable if it's not set in .ks file |
| 229 | if not self.size: | 229 | if not self.size and real_rootfs: |
| 230 | # Bitbake variable ROOTFS_SIZE is calculated in | 230 | # Bitbake variable ROOTFS_SIZE is calculated in |
| 231 | # Image._get_rootfs_size method from meta/lib/oe/image.py | 231 | # Image._get_rootfs_size method from meta/lib/oe/image.py |
| 232 | # using IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_ALIGNMENT, | 232 | # using IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_ALIGNMENT, |
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index 67e5498d5e..b239fc0b4c 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py | |||
| @@ -129,4 +129,4 @@ class BootimgPartitionPlugin(SourcePlugin): | |||
| 129 | 129 | ||
| 130 | logger.debug('Prepare boot partition using rootfs in %s', hdddir) | 130 | logger.debug('Prepare boot partition using rootfs in %s', hdddir) |
| 131 | part.prepare_rootfs(cr_workdir, oe_builddir, hdddir, | 131 | part.prepare_rootfs(cr_workdir, oe_builddir, hdddir, |
| 132 | native_sysroot) | 132 | native_sysroot, False) |
