Not including the label image but having multiple partitions of the same
type, the image file of one partition would overwrite the other.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/mic/kickstart/custom_commands/partition.py | 6 +++---
1 file changed, 3
Contents of /etc/fstab were restored too early, thus overwriting the
autogenerated ones.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/mic/imager/direct.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/mic/imager/direct.py b
Add handling of --fsoptions in parition definition. Default value of
mount option is 'defaults', all user defined options are appended.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/mic/imager/direct.py | 9 -
1 file changed, 8 insertions(+),
Signed-off-by: Maciej Borzecki
---
.../lib/mic/kickstart/custom_commands/partition.py | 26 ++
1 file changed, 26 insertions(+)
diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py
b/scripts/lib/mic/kickstart/custom_commands/partition.py
index d0f1b78
It is possible to instruct wic to create a squashfs partition by setting
--fstype=squashfs in *.wks. For now this is only useable for rootfs
partitions (note that you must have squashfs support in the kernel). An
attempt to create an empty partition will produce a warning.
Signed-off-by: Maciej
Add handling of --fsoptions in parition definition. If no options are
specified, 'defaults' is used.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/mic/imager/direct.py | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scrip
partition.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
Notes:
Previous version got messed up during merges and faulty code was sent
out. This one works as expected.
scripts/lib/mic/imager/direct.py | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff
Commit 6a7b98993350d0d24eae0058ae26ae19cfdf7c4c introduced a typo in
command, a whitespace was missing between --new-line-format and path to
original file. As a result, diffconfig task did not work, diff failed
with exit status 2, resulting in empty fragment.cfg.
Signed-off-by: Maciej Borzecki
The change prevents additional realignment of already aligned
partition. Previously, even already aligned partitions would be pushed
forward by the amount of --align.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/utils/partitionedfs.py | 19
number of
sectors (typically already expressed by --size in kickstart
file). Subtracting an odd number of sectors lost for overhead, leads to
an odd number of sectors assigned for partition, preventing the board,
such as beaglebone, from booting correctly.
Signed-off-by: Maciej Borzecki
Signed-off-
A couple of fixes that were need for properly booting wic generated
images on beaglebone black. The firs one fixes an apparent problem
with the size of the first partition being changed unexpectedly. For
images with MBR, such as ones used for booting BBB, this resulted in
the first (boot) partition
Update comment about types of generated partition images.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/kickstart/custom_commands/partition.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/wic/kickstart/custom_commands
the time have a proper sector count.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/kickstart/custom_commands/partition.py | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py
b
This patch series is a proposal that adds support for generating SD
card images for embedded boards using wic. I did not want to cross
post to meta-ti and meta-freescale so Denys and Otavio are added in
CC. I would be glad to receive some feedback from you.
So far, the 2 most common scenarios I've
Functions for generating rootfs use IMAGE_EXTRA_SPACE rather than
BOOTDD_EXTRA_SPACE. The latter is used in boot image source plugins.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/kickstart/custom_commands/partition.py | 4 ++--
1 file changed, 2 insertions
Document IMAGE_BOOT_FILES variable.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
documentation/ref-manual/ref-variables.xml | 18 ++
1 file changed, 18 insertions(+)
diff --git a/documentation/ref-manual/ref-variables.xml
b/documentation/ref-manual/ref
This patch implements 'bootimg-partition source plugin class for 'wic'. The
plugin creates an image of boot partition, copying over files listed in
IMAGE_BOOT_FILES bitbake variable.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
.../lib/wic/plugins
Running wic with -e to use artifacts from a named image, bootimg_dir was
always passed as empty string to partition source plugins. The patch
sets bootimg_dir to current value of DEPLOY_DIR_IMAGE, as bootloader
artifacts end up in that location as well.
Signed-off-by: Maciej Borzecki
Signed-off
Add kickstart for generating a SD card image that should cover most use
case scenarios. The layout is as follows:
- 16MB vfat partition that IMAGE_BOOT_FILES will be copied to, 4k
alignment
- ext4 rootfs, 4k alignment
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts
Set IMAGE_BOOT_FILES to list of files that end up in boot
partition. This in turn is used by wic to generate a bootable SD card
image.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
meta-yocto-bsp/conf/machine/beaglebone.conf | 2 ++
1 file changed, 2 insertions(+)
diff
Document IMAGE_BOOT_FILES variable.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
meta/conf/documentation.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf
index dd55685..66ec093 100644
--- a/meta/conf
On Tuesday 23 of September 2014 14:31:13 Denys Dmytriyenko wrote:
> On Mon, Sep 22, 2014 at 01:35:21PM +0200, Maciej Borzecki wrote:
> > Set IMAGE_BOOT_FILES to list of files that end up in boot
> > partition. This in turn is used by wic to generate a bootable SD card
> > i
On Tuesday 23 of September 2014 20:09:19 Richard Purdie wrote:
> On Tue, 2014-09-23 at 21:04 +0200, Maciej Borzecki wrote:
> > On Tuesday 23 of September 2014 14:31:13 Denys Dmytriyenko wrote:
> > > On Mon, Sep 22, 2014 at 01:35:21PM +0200, Maciej Borzecki wrote:
> > >
On Monday 29 of September 2014 15:40:14 Ross Burton wrote:
> Without this changing just the SRCREV won't re-fetch unless you embed the
> SRCREV into PV.
So a trick like this will not be needed anymore to automatically rebuild
whenever sources in SCM change?
SRCREV = "${AUTOREV}"
PVBASE := "${PV}
On Monday 20 of October 2014 13:45:37 Philip Balister wrote:
> I'm trying to make an sd card using the sdimage-bootpart.wks file. I've
> made an image and dd'ed it to a card. The card has a good vfat
> partition, but the ext4 partition won't mount. Looks like bad
> superblock. I can format the part
On Wednesday 22 of October 2014 09:03:03 Maciej Borzecki wrote:
> On Monday 20 of October 2014 13:45:37 Philip Balister wrote:
> > I'm trying to make an sd card using the sdimage-bootpart.wks file. I've
> > made an image and dd'ed it to a card. The card has a good vf
On Wednesday 22 of October 2014 07:40:37 Tom Zanussi wrote:
> On Wed, 2014-10-22 at 09:03 +0200, Maciej Borzecki wrote:
> > On Monday 20 of October 2014 13:45:37 Philip Balister wrote:
> > > I'm trying to make an sd card using the sdimage-bootpart.wks file. I've
> &g
s/lib/wic/plugins/source/bootimg-pcbios.py | 3 +-
> scripts/lib/wic/utils/oe/misc.py | 1 +
> scripts/wic | 13 +++
> 10 files changed, 68 insertions(+), 77 deletions(-)
For the whole series
Acked-by: Maciej Borzecki
--
Mac
This patch series adds changes that enable globbing in IMAGE_BOOT_FILES.
Effectivey this makes use of with with Raspberry Pi a tad easier, when a
lengthy list of boot files can be replaced with just one entry. A related
change to meta-raspberrypi will be sent to the Yocto mailing list.
Maciej
: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
.../lib/wic/plugins/source/bootimg-partition.py| 41 +-
1 file changed, 32 insertions(+), 9 deletions(-)
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py
b/scripts/lib/wic/plugins/source/bootimg
Update entry for IMAGE_BOOT_FILES with information on glob patterns.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
documentation/ref-manual/ref-variables.xml | 37 --
1 file changed, 30 insertions(+), 7 deletions(-)
diff --git a/documentation
Check for malformed entries in IMAGE_BOOT_FILES, fail early if such
entries were found.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/plugins/source/bootimg-partition.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/lib/wic/plugins/source
On 12/15 11:04, Tom Zanussi wrote:
> On Wed, 2014-12-10 at 12:45 +0100, Maciej Borzecki wrote:
> > This patch series adds changes that enable globbing in IMAGE_BOOT_FILES.
> > Effectivey this makes use of with with Raspberry Pi a tad easier, when a
> > lengthy list of boot
as before, but
built from Python stdlib. The version of new module matches that of
the Python release. Hence, there should be a clean upgrade path from
the old module.
Maciej Borzecki (2):
python-argparse: remove external argparse module
python-2.7-manifest.inc: add stdlib argparse module
m
Python argparse module is a part of a standard library since Python 2.7
release. Remove externally built module in favor of the stdlib one.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
meta/recipes-devtools/python/python-argparse_1.2.1.bb | 17 -
1 file
Adding argparse module from Python's standard library. The module has replaced
previous python-argparse package that was build using source that are not part
of Python 2.7 release.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
meta/recipes-devtools/python/pytho
MMC block device partitions are named differently than other block
devices and use the scheme: mmcblkp, ex: mmcblk0p1,
mmcblk0p2. The current code generates incorrect parition names missing
'p' infix for fstab entries. The patch resolves this problem.
Signed-off-by: Maciej Borzecki
Sig
: 46b0c76e2c355c0d0cc4792abb98cde07b28bc5)
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
...d-preferred-source-to-dhcp4-gateway-route.patch | 109 +
meta/recipes-core/systemd/systemd_216.bb | 1 +
2 files changed, 110 insertions(+)
create mode
common in smaller networks that the
DHCP server, gateway router and even a DNS server are colocated. In
these setups the current code will effectively render any
communication to or past the router impossible.
Maciej Borzecki (1):
systemd: cherry-pick patch fixing networkd gateway route handling
On 01/08 12:14, Otavio Salvador wrote:
> On Thu, Jan 8, 2015 at 6:43 AM, Maciej Borzecki
> wrote:
> > Cherry-picking a patch that fixes gateway route handling in
> > systemd-networkd. The patch adds a source IP to the automatically added
> > gateway
> > static
On 01/08 12:13, Otavio Salvador wrote:
> On Thu, Jan 8, 2015 at 6:43 AM, Maciej Borzecki
> wrote:
> > There is a problem in systemd-networkd version used in OE-core (216 as
> > of now) that prevents a successful communication in a configuration
> > that uses a static or I
systemd rev: 46b0c76e2c355c0d0cc4792abb98cde07b28bc5)
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
...d-preferred-source-to-dhcp4-gateway-route.patch | 114 +
meta/recipes-core/systemd/systemd_216.bb | 1 +
2 files changed, 115 insertions
On 01/08 14:35, akuster808 wrote:
> Does this affect Dizzy?
Yes, Dizzy uses the same revision of systemd
(5d0ae62c665262c4c55536457e84e278c252cc0b tagged as v216) as master.
--
Maciej Borzęcki
Senior Software Developer at Open-RnD Sp. z o.o., Poland
www.open-rnd.pl
mobile: +48 889 117 365, fax: +
partitions. Hopefully this list is the last patch fixing sector
stealing.
Maciej Borzecki (1):
wic: fix extended/logical partition layout
scripts/lib/wic/utils/partitionedfs.py | 40 --
1 file changed, 19 insertions(+), 21 deletions(-)
--
1.9.3
-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/utils/partitionedfs.py | 40 --
1 file changed, 19 insertions(+), 21 deletions(-)
diff --git a/scripts/lib/wic/utils/partitionedfs.py
b/scripts/lib/wic/utils/partitionedfs.py
index fb95cc7
On 01/08 18:36, Otavio Salvador wrote:
> On Thu, Jan 8, 2015 at 5:59 PM, Maciej Borzecki
> wrote:
> > Cherry-picking a patch that fixes gateway route handling in
> > systemd-networkd.
> > The patch adds a source IP to the automatically added gateway static route,
> &g
ping
On 01/09 14:24, Maciej Borzecki wrote:
> The patch fixes an issue in laying out extended and logical partitions
> by wic. The original code produced disk images in which the size 3rd
> partition as described in MBR was incorrect. Depending on the type of
> file system used for th
On 02/02 08:36, Maciej Borzecki wrote:
> On 01/08 18:36, Otavio Salvador wrote:
> > On Thu, Jan 8, 2015 at 5:59 PM, Maciej Borzecki
> > wrote:
> > > Cherry-picking a patch that fixes gateway route handling in
> > > systemd-networkd.
> > > The patch a
On 02/02 08:29, Tom Zanussi wrote:
> On Mon, 2015-02-02 at 08:37 +0100, Maciej Borzecki wrote:
> > ping
> >
>
> This looks reasonable, but I haven't been able to verify it due to wic
> problems introduced by the recent kernel changes in oe-core.
>
> If you have t
pts/lib/wic/3rdparty/pykickstart/options.py
> @@ -143,6 +143,24 @@ def _check_string(option, opt, value):
> else:
> return value
>
> +def _check_size(option, opt, value):
> +# Former default was MB
> +if (value.isdigit()):
> + return int(value) *
.
Signed-off-by: Maciej Borzecki
Signed-off-by: Maciek Borzecki
---
scripts/lib/wic/kickstart/__init__.py | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/scripts/lib/wic/kickstart/__init__.py
b/scripts/lib/wic/kickstart/__init__.py
index
f=/var/tmp/wic/build/test-201502050034-mmcblk.direct bs=512 seek=8
> count=294174 conv=notrunc returned '1' instead of 0
>
> Using bootimg-partition anywhere but in the first position will fail
> because the previously generated fs images (in my example
> rootfs_root.ext4) will be
On 02/05 00:03, Alexandre Belloni wrote:
> For some architectures it is necessary to reserve space on disk without
> it being present in the partition table.
>
> For example, u-boot on i.mx is placed at an offset of 1kB on the sdcard.
> While it would be possible to create a partition at that offse
On 02/05 11:27, Alexandre Belloni wrote:
> Hi,
>
> On 05/02/2015 at 10:02:26 +0100, Maciej Borzecki wrote :
> > On 02/05 00:03, Alexandre Belloni wrote:
> > > For some architectures it is necessary to reserve space on disk without
> > > it being present in the
: Maciej Borzecki
---
meta/conf/machine/qemux86.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/machine/qemux86.conf b/meta/conf/machine/qemux86.conf
index
8997f6ba701a91f0adc82dfaf410c7dd1a9777f3..1b478e92ad7fdf6f3cb2dd4f6dc35684a319848c
100644
--- a/meta/conf
native sysroot as one of its arguments and
setup PATH accordingly.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/utils/commands.py | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index
Instead of assuming that bzImage is available, query bitbake enviroment
for KERNEL_IMAGETYPE.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
rmail/openembedded-core/2016-November/129187.html
Maciej Borzecki (5):
oeqa/utils/commands.py: allow use of binaries from native sysroot
wic: add --fixed-size wks option
wic: selftest: avoid COMPATIBLE_HOST issues
wic: selftest: do not assume bzImage kernel image
wic: selftest: add test
along with --fixed-size, will raise an error.
If it partition data is larger than the amount of space specified with
--fixed-size option wic will raise an error.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/help.py| 14 --
scripts/lib/wic/imager/direct.py | 2
decorator onlyForArch() can be used to skip test cases for
specific architectures.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 53 +++
1 file changed, 48 insertions(+), 5 deletions(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta
wic has a new flag for setting a fixed parition size --fixed-size. Add
tests that verify if partition is indeed sized properly and that errors
are signaled when there is not enough space to fit partition data.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 61
Use wictestdisk instead of directdisk thus allowing more tests to be run on
non-x86 compatible machines.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 66 +--
1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/meta/lib
decorator onlyForArch() can be used to skip test cases for
specific architectures.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 51 ++-
1 file changed, 46 insertions(+), 5 deletions(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta
Instead of assuming that bzImage is available, query bitbake enviroment
for KERNEL_IMAGETYPE.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
wic has a new flag for setting a fixed parition size --fixed-size. Add
tests that verify if partition is indeed sized properly and that errors
are signaled when there is not enough space to fit partition data.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 63
4299a3de6789833a27cce4f7e4bc79f48946f171
Author: Ed Bartosh
Date: Fri Dec 23 01:42:14 2016 +0200
image_types.bbclass: look for wks files in /wic
Maciej Borzecki (5):
selftest: wictestdisk: machine agnostic WKS for use with selftest
selftest: wic: replace directdisk with wictestdisk where possible
wic
Add a kickstart for an image that is not limited to use on x86 compatible
machines. This allows us to run more wic tests on non-x86 architectures.
Signed-off-by: Maciej Borzecki
---
meta-selftest/wic/wictestdisk.wks | 7 +++
1 file changed, 7 insertions(+)
create mode 100644 meta-selftest
Commit 8c1c43b7901a9fcd8b279eb4250b08157ad345b7 `wic: Create a logical partition
only when it is really mandatory` did not account for partitions that are not
present in partition table.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/utils/partitionedfs.py | 3 ++-
1 file changed, 2
allarch-go-cross.populate_sysroot`, while the correct name is
`manifest-x86_64_arm-go-cross.populate_sysroot`
Signed-off-by: Maciej Borzecki
---
meta/classes/staging.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbc
Signed-off-by: Maciej Borzecki
---
meta/recipes-core/systemd/systemd_230.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/systemd/systemd_230.bb
b/meta/recipes-core/systemd/systemd_230.bb
index
6e6ef76cfa2322fc0b833e4f38a4cdf7483a8782
modules end up in ${rootlibdir}
- 0024-resolved-when-processing-auxiliary-DNSSEC-transactio - backport
v231 patch that fixes SERVFAIL handling, required for name resolution
under qemu or in containers.
Signed-off-by: Maciej Borzecki
---
.../0023-nss-install-nss-modules-into-lib.patch| 64
abled
- applies a patch fixing the location of libnss_* services provided by systemd
(the patch has been submitted upstream for inclusion in v232)
- applies a patch that fixes SERVFAIL handling, this restores the ability to
properly resolve names under qemu (backport from v231)
Maciej Borzec
smaller than the reserved space, thus
leaving some room for growth. If it is larger, an error will be raised.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/help.py| 11 ++
scripts/lib/wic/imager/direct.py | 3 ++-
scripts/lib/wic/ksparser.py| 1
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/partition.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index
89c33ab8b7d54bb14678b2e07e706e3feb6ae57a..4b8d769437120adadb5dba2f3919d4eb96141292
100644
) are subject to the same rules of partition
sizing.
http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127634.html
Maciej Borzecki (5):
wic: make sure that partition size is always an integer in internal
processing
wic: use partition size when creating empty partition
along with --fixed-size, will raise an error.
If it partition data is larger than the amount of space specified with
--fixed-size option wic will raise an error.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/help.py| 14 --
scripts/lib/wic/imager/direct.py | 2
partition.py", line 146, in prepare
method(rootfs, oe_builddir, native_sysroot)
File "/poky/scripts/lib/wic/partition.py", line 325, in
prepare_empty_partition_ext
os.ftruncate(sparse.fileno(), rootfs_size * 1024)
NameError: name 'rootfs_size' is not d
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/partition.py | 4
1 file changed, 4 insertions(+)
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index
8adc698240c8e3bd9f4118663a5d7a167e0bb4a4..24e657592738dc7c5cdff78e3740d7c373021e9d
100644
--- a/scripts/lib
Fix typos in documentation of Image.add_partition() and
Image.__format_disks().
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/utils/partitionedfs.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/wic/utils/partitionedfs.py
b/scripts/lib/wic/utils
Maciej Borzecki (10):
wic: make sure that partition size is always an integer in internal
processing
wic: use partition size when creating empty partition files
wic: check that filesystem is specified for a rootfs partition
wic: fix function comment typos
wic: add --fixed-size wks option
We explicitly check for --fstype if no source was provided for a
partition. However, this was not the case for rootfs partitions. Make
sure to raise an error if filesystem was left unspecified when preparing
a rootfs partition image.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic
The size field of Partition class is expected to be an integer and ought
to be set inside prepare_*() method. Make sure that this is always the
case.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/partition.py | 12 +---
scripts/lib/wic/plugins/source/bootimg-efi.py
partition.py", line 146, in prepare
method(rootfs, oe_builddir, native_sysroot)
File "/poky/scripts/lib/wic/partition.py", line 325, in
prepare_empty_partition_ext
os.ftruncate(sparse.fileno(), rootfs_size * 1024)
NameError: name 'rootfs_size' is not d
Instead of assuming that bzImage is available, query bitbake enviroment
for KERNEL_IMAGETYPE.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
along with --fixed-size, will raise an error.
If it partition data is larger than the amount of space specified with
--fixed-size option wic will raise an error.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/help.py| 14 --
scripts/lib/wic/imager/direct.py | 2
wic has a new flag for setting a fixed parition size --fixed-size. Add
tests that verify if partition is indeed sized properly and that errors
are signaled when there is not enough space to fit partition data.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 65
Fix typos in documentation of Image.add_partition() and
Image.__format_disks().
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/utils/partitionedfs.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/wic/utils/partitionedfs.py
b/scripts/lib/wic/utils
e does not necessarily have an ID
assigned, hence its value is None. Since Python 3 does not allow
comparison of heterogeneous types, TypeError is raised.
Signed-off-by: Maciej Borzecki
---
scripts/oe-selftest | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/scripts/
: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index
faac11e21643e4c32a83b649b6ae986fead498f1..60e31de5825c84fca21d4dbe946e5cc7af8df511
100644
--- a
Replace repeated core-image-minimal with Wic class field.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 111 +++---
1 file changed, 73 insertions(+), 38 deletions(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest
and beaglebone
* oe-selftest enforces en_US.UTF-8 encoding to enforce stable textual
output of locaization aware programs
[1].
http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128630.html
Maciej Borzecki (11):
wic: make sure that partition size is always an integer in
partition.py", line 146, in prepare
method(rootfs, oe_builddir, native_sysroot)
File "/poky/scripts/lib/wic/partition.py", line 325, in
prepare_empty_partition_ext
os.ftruncate(sparse.fileno(), rootfs_size * 1024)
NameError: name 'rootfs_size' is not d
The size field of Partition class is expected to be an integer and ought
to be set inside prepare_*() method. Make sure that this is always the
case.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/partition.py | 12 +---
scripts/lib/wic/plugins/source/bootimg-efi.py
We explicitly check for --fstype if no source was provided for a
partition. However, this was not the case for rootfs partitions. Make
sure to raise an error if filesystem was left unspecified when preparing
a rootfs partition image.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic
Fix typos in documentation of Image.add_partition() and
Image.__format_disks().
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/utils/partitionedfs.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/wic/utils/partitionedfs.py
b/scripts/lib/wic/utils
decorator onlyForArch() can be used to skip test cases for
specific architectures.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 51 +++
1 file changed, 47 insertions(+), 4 deletions(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta
Replace repeated core-image-minimal with Wic class field.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 111 +++---
1 file changed, 73 insertions(+), 38 deletions(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest
Instead of assuming that bzImage is available, query bitbake enviroment
for KERNEL_IMAGETYPE.
Signed-off-by: Maciej Borzecki
---
meta/lib/oeqa/selftest/wic.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
along with --fixed-size, will raise an error.
If it partition data is larger than the amount of space specified with
--fixed-size option wic will raise an error.
Signed-off-by: Maciej Borzecki
---
scripts/lib/wic/help.py| 14 --
scripts/lib/wic/imager/direct.py | 2
e does not necessarily have an ID
assigned, hence its value is None. Since Python 3 does not allow
comparison of heterogeneous types, TypeError is raised.
Signed-off-by: Maciej Borzecki
---
scripts/oe-selftest | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/scripts/
1 - 100 of 157 matches
Mail list logo