[OE-core] [PATCH v2 1/5] wic: copy rootfs directory before changing fstab

2017-06-27 Thread Ed Bartosh
using copyhardlinktree before updating fstab to avoid conflicts with other tasks working with rootfs. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/scripts/lib/wic/plugins/imager

[OE-core] [PATCH v2 3/5] wic: rootfs: fix rootfs path reporting

2017-06-27 Thread Ed Bartosh
the report. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 7 ++- scripts/lib/wic/plugins/source/rootfs.py | 10 -- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direc

[OE-core] [PATCH v2 2/5] wic: use absolute paths in rootfs plugin

2017-06-27 Thread Ed Bartosh
Using relative paths can cause copyhardlinktree API to fail as it changes current directory when working. Converted all paths to absolute paths using os.path.realpath. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[OE-core] [PATCH v2 4/5] wic: rootfs: make copied rootfs unique

2017-06-27 Thread Ed Bartosh
Used unique suffix (line number from .wks file) for the copied rootfs directory to avoid possible conflicts. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b

[OE-core] [PATCH v2 5/5] wic: add /boot mount point to fstab by default

2017-06-27 Thread Ed Bartosh
caused by changed amount of mounted partitions. [YOCTO #11662] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- scripts/lib/wic/plugins/imager/direct.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-28 Thread Ed Bartosh
avio Salvador wrote: > >On Tue, Jun 27, 2017 at 10:28 AM, Ed Bartosh > >wrote: > >>The patchset also fixes long standing bug: wic updated fstab > >>inplace in rootfs directory. This causes other tasks working with > >>rootfs directory to produce incorrect resul

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-29 Thread Ed Bartosh
On Wed, Jun 28, 2017 at 10:32:27AM -0300, Otavio Salvador wrote: > On Wed, Jun 28, 2017 at 4:31 AM, Ed Bartosh > wrote: > > On Tue, Jun 27, 2017 at 05:41:45PM -0300, Fabio Berton wrote: > >> The last patch I sent is here: > >> https://patchwork.openembedded.org

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-30 Thread Ed Bartosh
On Thu, Jun 29, 2017 at 11:39:42AM +0300, Ed Bartosh wrote: > On Wed, Jun 28, 2017 at 10:32:27AM -0300, Otavio Salvador wrote: > > On Wed, Jun 28, 2017 at 4:31 AM, Ed Bartosh > > wrote: > > > On Tue, Jun 27, 2017 at 05:41:45PM -0300, Fabio Berton wrote: > > &g

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-30 Thread Ed Bartosh
On Fri, Jun 30, 2017 at 11:02:13AM +0200, Patrick Ohly wrote: > On Fri, 2017-06-30 at 11:37 +0300, Ed Bartosh wrote: > > > I'm not sure I understand this. If you don't want fstab to be > > changed > > > you should not specify mount points in .wks > > >

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-30 Thread Ed Bartosh
On Fri, Jun 30, 2017 at 10:58:27AM -0300, Otavio Salvador wrote: > On Fri, Jun 30, 2017 at 10:16 AM, Patrick Ohly wrote: > > On Fri, 2017-06-30 at 15:23 +0300, Ed Bartosh wrote: > >> On Fri, Jun 30, 2017 at 11:02:13AM +0200, Patrick Ohly wrote: > >> > On Fri, 2017-06

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-30 Thread Ed Bartosh
On Fri, Jun 30, 2017 at 03:16:33PM +0200, Patrick Ohly wrote: > On Fri, 2017-06-30 at 15:23 +0300, Ed Bartosh wrote: > > On Fri, Jun 30, 2017 at 11:02:13AM +0200, Patrick Ohly wrote: > > > On Fri, 2017-06-30 at 11:37 +0300, Ed Bartosh wrote: > > > > > I'm no

Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-07-03 Thread Ed Bartosh
On Fri, Jun 30, 2017 at 08:34:30PM +0200, Patrick Ohly wrote: > On Fri, 2017-06-30 at 14:33 -0300, Otavio Salvador wrote: > > Other possible rootfs changes also should be possible to be disabled > > but IMO it should be per-feature (one for fstab, one for exclude, > > ...). > > I also think it sho

Re: [OE-core] [PATCH] bootimg-efi.py: Use IMGDEPLOYDIR instead of DEPLOY_DIR_IMAGE for initrd

2017-07-03 Thread Ed Bartosh
On Fri, Jun 30, 2017 at 10:53:30AM -0700, Alejandro Hernandez wrote: > When using wic to create an image from a certain build, wic is expecting > to find initrd at the final destination of our images (DEPLOY_DIR_IMAGE), > which is wrong, since the initrd file has not been copied to the final > dire

[OE-core] [wic][PATCH 06/15] qemurunner: add parameter to method 'start'

2016-02-02 Thread Ed Bartosh
onnection. Some tests can be run using serial console. Added new parameter 'get_ip' to QemuRunner.start to make it possible to skip getting pair of ip addresses from kernel command line. This should allow oe-selftest to test images without modifying kernel command line. [YOCTO #8498]

[OE-core] [wic][PATCH 03/15] runqemu: don't set KERNEL for wic images

2016-02-02 Thread Ed Bartosh
ernel path. Signed-off-by: Ed Bartosh --- scripts/runqemu | 2 +- scripts/runqemu-internal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 4bb3bb6..0830901 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -454,7 +454,7

[OE-core] [wic][PATCH 02/15] runqemu: don't use virtio for wic images

2016-02-02 Thread Ed Bartosh
qemu hands with 'waiting for root device' message during the boot of wic images if '-drive if=virtio' option is used. Removed if=virtio from qemu command line for wic images. This should fix above mentioned boot issue. Signed-off-by: Ed Bartosh --- scripts/runqemu-inte

[OE-core] [wic][PATCH 00/15] Support for wic images in runqemu and oe-selftest

2016-02-02 Thread Ed Bartosh
-core/qemuRunner-wic-8498 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/oe-core/qemuRunner-wic-8498 Ed Bartosh (15): runqemu: add support for wic images runqemu: don't use virtio for wic images runqemu: don't set KERNEL for wic images runqemu: support path/to/-.wi

[OE-core] [wic][PATCH 07/15] oeqa/targetcontrol: make ssh control optional

2016-02-02 Thread Ed Bartosh
Added new parameter 'ssh' to targetcontrol 'start' method to be able to test images without running ssh server. [YOCTO #8498] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/targetcontrol.py | 18 ++ meta/lib/oeqa/utils/commands.py | 4 ++-- 2 files changed,

[OE-core] [wic][PATCH 05/15] oe-selftest: remove unused parameter

2016-02-02 Thread Ed Bartosh
From: Ed Bartosh Removed unused parameter 'test' from runqemu function. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/devtool.py | 2 +- meta/lib/oeqa/selftest/imagefeatures.py | 6 +++--- meta/lib/oeqa/utils/commands.py | 2 +- 3 files changed, 5 insert

[OE-core] [wic][PATCH 08/15] oeqa/targetcontrol: support wic image type

2016-02-02 Thread Ed Bartosh
Added 'wic' to the list image types supported by targetcontrol. This is a preparation for booting and testing wic images with oe-selftest. [YOCTO #8498] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/targetcontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core] [wic][PATCH 04/15] runqemu: support path/to/-.wic

2016-02-02 Thread Ed Bartosh
Supported providing wic image path to runqemu: runquemu path/to/-.wic [YOCTO #8691] Signed-off-by: Ed Bartosh --- scripts/runqemu | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 0830901..48b7551 100755 --- a/scripts

[OE-core] [wic][PATCH 01/15] runqemu: add support for wic images

2016-02-02 Thread Ed Bartosh
Quemu should be able to run wic images this way: runqemu wic Tested with 'runqemu qemux86-64 wic-image-minimal wic' Signed-off-by: Ed Bartosh --- scripts/runqemu | 3 ++- scripts/runqemu-internal | 16 2 files changed, 10 insertions(+), 9 deletion

[OE-core] [wic][PATCH 11/15] oe-selftest: add new wic testcase

2016-02-02 Thread Ed Bartosh
Added test_qemu testcase to boot wic-image-minimal and test that 2 partitions mentioned in .wks are mounted. [YOCTO #8499] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py

[OE-core] [wic][PATCH 15/15] oe-selftest: don't use specific tasks

2016-02-02 Thread Ed Bartosh
Image should be build usual way, i.e. using bitbake . Specifying do_mage_complete and do_rootfs_wicenv tasks should not be needed anymore as those tasks should be run by bitbake for every image. Removed specifying do_mage_complete and do_rootfs_wicenv tasks from bitbake calls. Signed-off-by: Ed

[OE-core] [wic][PATCH 13/15] wic-image-minimal: use uuid for root partition

2016-02-02 Thread Ed Bartosh
Used --uuid option to generate PARTUUID for root partion and gpt partition type. As this image is used in runtime testing under qemu it makes sense to ensure that this way of specifying root partition works. Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.wks

[OE-core] [wic][PATCH 10/15] wic-image-minimal: updated .wks to boot by qemu

2016-02-02 Thread Ed Bartosh
With below list of changes wic-image-minimal can be boot by qemu: - Changed device name sda -> hda. - Added root=/dev/hda2 to the kernel command line. - Changed mount point for core partition to /mnt to have it mounted on boot time. Signed-off-by: Ed Bartosh --- meta-selft

[OE-core] [wic][PATCH 12/15] wic: fix processing of --use-uuid

2016-02-02 Thread Ed Bartosh
Processing of this option was lost during recent change of wks parsting. It was discovered during the work on booting wic images under qemu. Now, when -use-uuid is fixed it's possible to specify root partition by partition uuid. This will be done in the following commit. Signed-off-by: Ed Ba

[OE-core] [wic][PATCH 14/15] oe-selftest: pylinted wic tests

2016-02-02 Thread Ed Bartosh
(redefined-builtin) W:175, 8: Redefining built-in 'vars' (redefined-builtin) W: 27, 0: Unused import sys (unused-import) Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/meta/lib/oeqa/selfte

[OE-core] [wic][PATCH 09/15] wic-image-minimal: change IMAGE_FSTYPES

2016-02-02 Thread Ed Bartosh
Replaced wic.bz2 -> wic in IMAGE_FSTYPES. wic-image-minimal is going to be booted in qemu and tested. As runqemu doesn't support compressed images this recipe needs to produce raw wic image. Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +-

Re: [OE-core] [wic][PATCH 02/15] runqemu: don't use virtio for wic images

2016-02-02 Thread Ed Bartosh
On Tue, Feb 02, 2016 at 02:50:19PM +, Richard Purdie wrote: > On Tue, 2016-02-02 at 09:27 +0200, Ed Bartosh wrote: > > qemu hands with 'waiting for root device' message during the > > boot of wic images if '-drive if=virtio' option is used. > > > &g

Re: [OE-core] [wic][PATCH 02/15] runqemu: don't use virtio for wic images

2016-02-02 Thread Ed Bartosh
On Tue, Feb 02, 2016 at 03:57:08PM +, Richard Purdie wrote: > On Tue, 2016-02-02 at 14:55 +0200, Ed Bartosh wrote: > > On Tue, Feb 02, 2016 at 02:50:19PM +, Richard Purdie wrote: > > > On Tue, 2016-02-02 at 09:27 +0200, Ed Bartosh wrote: > > > > qemu hands

[OE-core] [wic][PATCH v2 00/14] Support for wic images in runqemu and oe-selftest

2016-02-02 Thread Ed Bartosh
(2016-02-01 17:16:05 +) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/oe-core/qemuRunner-wic-8498 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/oe-core/qemuRunner-wic-8498 Ed Bartosh (14): runqemu: add support for wic images runqe

[OE-core] [wic][PATCH v2 01/14] runqemu: add support for wic images

2016-02-02 Thread Ed Bartosh
Quemu should be able to run wic images this way: runqemu wic Tested with 'runqemu qemux86-64 wic-image-minimal wic' Signed-off-by: Ed Bartosh --- scripts/runqemu | 3 ++- scripts/runqemu-internal | 16 2 files changed, 10 insertions(+), 9 deletion

[OE-core] [wic][PATCH v2 03/14] runqemu: support path/to/-.wic

2016-02-02 Thread Ed Bartosh
Supported providing wic image path to runqemu: runquemu path/to/-.wic [YOCTO #8691] Signed-off-by: Ed Bartosh --- scripts/runqemu | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 0830901..48b7551 100755 --- a/scripts

[OE-core] [wic][PATCH v2 06/14] oeqa/targetcontrol: make ssh control optional

2016-02-02 Thread Ed Bartosh
Added new parameter 'ssh' to targetcontrol 'start' method to be able to test images without running ssh server. [YOCTO #8498] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/targetcontrol.py | 18 ++ meta/lib/oeqa/utils/commands.py | 4 ++-- 2 files changed,

[OE-core] [wic][PATCH v2 05/14] qemurunner: add parameter to method 'start'

2016-02-02 Thread Ed Bartosh
onnection. Some tests can be run using serial console. Added new parameter 'get_ip' to QemuRunner.start to make it possible to skip getting pair of ip addresses from kernel command line. This should allow oe-selftest to test images without modifying kernel command line. [YOCTO #8498]

[OE-core] [wic][PATCH v2 14/14] oe-selftest: don't use specific tasks

2016-02-02 Thread Ed Bartosh
Image should be build usual way, i.e. using bitbake . Specifying do_mage_complete and do_rootfs_wicenv tasks should not be needed anymore as those tasks should be run by bitbake for every image. Removed specifying do_mage_complete and do_rootfs_wicenv tasks from bitbake calls. Signed-off-by: Ed

[OE-core] [wic][PATCH v2 04/14] oe-selftest: remove unused parameter

2016-02-02 Thread Ed Bartosh
From: Ed Bartosh Removed unused parameter 'test' from runqemu function. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/devtool.py | 2 +- meta/lib/oeqa/selftest/imagefeatures.py | 6 +++--- meta/lib/oeqa/utils/commands.py | 2 +- 3 files changed, 5 insert

[OE-core] [wic][PATCH v2 10/14] oe-selftest: add new wic testcase

2016-02-02 Thread Ed Bartosh
Added test_qemu testcase to boot wic-image-minimal and test that 2 partitions mentioned in .wks are mounted. [YOCTO #8499] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py

[OE-core] [wic][PATCH v2 07/14] oeqa/targetcontrol: support wic image type

2016-02-02 Thread Ed Bartosh
Added 'wic' to the list image types supported by targetcontrol. This is a preparation for booting and testing wic images with oe-selftest. [YOCTO #8498] Signed-off-by: Ed Bartosh --- meta/lib/oeqa/targetcontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core] [wic][PATCH v2 11/14] wic: fix processing of --use-uuid

2016-02-02 Thread Ed Bartosh
Processing of this option was lost during recent change of wks parsting. It was discovered during the work on booting wic images under qemu. Now, when -use-uuid is fixed it's possible to specify root partition by partition uuid. This will be done in the following commit. Signed-off-by: Ed Ba

[OE-core] [wic][PATCH v2 09/14] wic-image-minimal: update .wks to boot by qemu

2016-02-02 Thread Ed Bartosh
With below list of changes wic-image-minimal can be boot by qemu: - Changed device name sda -> vda. - Added root=/dev/vda2 to the kernel command line. - Changed mount point for core partition to /mnt to have it mounted on boot time. Signed-off-by: Ed Bartosh --- meta-selft

[OE-core] [wic][PATCH v2 12/14] wic-image-minimal: use uuid for root partition

2016-02-02 Thread Ed Bartosh
partition table. Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta-selftest/recipes-test/images/wic-image-minimal.wks | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.bb b

[OE-core] [wic][PATCH v2 08/14] wic-image-minimal: change IMAGE_FSTYPES

2016-02-02 Thread Ed Bartosh
Replaced wic.bz2 -> wic in IMAGE_FSTYPES. wic-image-minimal is going to be booted in qemu and tested. As runqemu doesn't support compressed images this recipe needs to produce raw wic image. Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +-

[OE-core] [wic][PATCH v2 02/14] runqemu: don't set KERNEL for wic images

2016-02-02 Thread Ed Bartosh
ernel path. Signed-off-by: Ed Bartosh --- scripts/runqemu | 2 +- scripts/runqemu-internal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 4bb3bb6..0830901 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -454,7 +454,7

[OE-core] [wic][PATCH v2 13/14] oe-selftest: pylinted wic tests

2016-02-02 Thread Ed Bartosh
(redefined-builtin) W:175, 8: Redefining built-in 'vars' (redefined-builtin) W: 27, 0: Unused import sys (unused-import) Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/meta/lib/oeqa/selfte

[OE-core] [PATCH] oeqa: setup bitbake logger after tinfoil.shutdown

2016-02-10 Thread Ed Bartosh
Bitbake logger stops working after tinfoil.shutdown removes console handler from it. This makes bb.{error,warn,note,critical} messages disappear from the console. Adding console handler to bitbake logger again should fix this issue. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/utils/commands.py

Re: [OE-core] create_image.wic is missing u-boot SPL file

2016-02-11 Thread Ed Bartosh
Hi Oliver, This looks like a bug in wic code to me. I remember something similar was fixed recently. Please, create a bug in for me in bugzilla. On Wed, Feb 10, 2016 at 05:14:58PM +0100, Oliver Graute wrote: > Hello list, > > I observe a problem with the create_image.wic script after second exec

[OE-core] [wic][PATCH v3 01/14] runqemu: add support for wic images

2016-02-13 Thread Ed Bartosh
Quemu should be able to run wic images this way: runqemu wic Tested with 'runqemu qemux86-64 wic-image-minimal wic' (From OE-Core rev: 8716be799949cb8bde7fa49cbea61312a3a93bb7) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/runqemu | 3 ++

[OE-core] [wic][PATCH v3 00/14] Support for wic images in runqemu and oe-selftest

2016-02-13 Thread Ed Bartosh
/qemuRunner-wic-8498 Ed Bartosh (14): runqemu: add support for wic images runqemu: don't set KERNEL for wic images runqemu: support path/to/-.wic oe-selftest: remove unused parameter qemurunner: add parameter to method 'start' oeqa/targetcontrol: make ssh control optiona

[OE-core] [wic][PATCH v3 02/14] runqemu: don't set KERNEL for wic images

2016-02-13 Thread Ed Bartosh
ernel path. (From OE-Core rev: 474caa7ed5ff05caa5d49d270b283882fa616ed1) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/runqemu | 2 +- scripts/runqemu-internal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu

[OE-core] [wic][PATCH v3 04/14] oe-selftest: remove unused parameter

2016-02-13 Thread Ed Bartosh
From: Ed Bartosh Removed unused parameter 'test' from runqemu function. (From OE-Core rev: c688b3bcbb57099fa72a9728bc708b109802f7fc) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/devtool.py | 2 +- meta/lib/oeqa/selftest/imagefeatu

[OE-core] [wic][PATCH v3 11/14] wic: fix processing of --use-uuid

2016-02-13 Thread Ed Bartosh
e rev: b4882e0b84d7fd4c85ee95386e94722485eafc2b) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/lib/wic/partition.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 9bb1a0a..55bcfba 100644 --- a/scripts/li

[OE-core] [wic][PATCH v3 07/14] oeqa/targetcontrol: support wic image type

2016-02-13 Thread Ed Bartosh
Added 'wic' to the list image types supported by targetcontrol. This is a preparation for booting and testing wic images with oe-selftest. [YOCTO #8498] (From OE-Core rev: 7dda053fbd1ea1354b7720cfa691470ba88ef5b9) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- met

[OE-core] [wic][PATCH v3 10/14] oe-selftest: add new wic testcase

2016-02-13 Thread Ed Bartosh
Added test_qemu testcase to boot wic-image-minimal and test that 2 partitions mentioned in .wks are mounted. [YOCTO #8499] (From OE-Core rev: 6fb015d0847fe7d259d654d4a99bf4c328f810ab) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/wic.py | 12

[OE-core] [wic][PATCH v3 09/14] wic-image-minimal: update .wks to boot by qemu

2016-02-13 Thread Ed Bartosh
rev: f085274711f561f97a2c89f40bb0e89094973054) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta-selftest/recipes-test/images/wic-image-minimal.wks | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.wks b/meta-selftest/recipes-t

[OE-core] [wic][PATCH v3 06/14] oeqa/targetcontrol: make ssh control optional

2016-02-13 Thread Ed Bartosh
Added new parameter 'ssh' to targetcontrol 'start' method to be able to test images without running ssh server. [YOCTO #8498] (From OE-Core rev: 1c3c66aadd43092bc19242b0651ee810cc31fe7c) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/ta

[OE-core] [wic][PATCH v3 03/14] runqemu: support path/to/-.wic

2016-02-13 Thread Ed Bartosh
Supported providing wic image path to runqemu: runquemu path/to/-.wic [YOCTO #8691] (From OE-Core rev: 58a3bfb1e4b493200820cdf0bf3fc79e31e792de) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/runqemu | 10 ++ 1 file changed, 6 insertions(+), 4 deletions

[OE-core] [wic][PATCH v3 05/14] qemurunner: add parameter to method 'start'

2016-02-13 Thread Ed Bartosh
#8498] (From OE-Core rev: 3f8b734ebb81d035849288091bb0b97b9c4fba34) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/utils/qemurunner.py | 45 --- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/meta/lib/oeqa/utils/qemurunner.

[OE-core] [wic][PATCH v3 13/14] oe-selftest: pylinted wic tests

2016-02-13 Thread Ed Bartosh
(redefined-builtin) W:175, 8: Redefining built-in 'vars' (redefined-builtin) W: 27, 0: Unused import sys (unused-import) (From OE-Core rev: ecb5320e766d0fa031c269d6d9b2a24c81c7aa7e) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/wic.py | 18 ++

[OE-core] [wic][PATCH v3 14/14] oe-selftest: don't use specific tasks

2016-02-13 Thread Ed Bartosh
: d8d7bd1b41eb846f18378a2581ff172cb2cc52b8) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/wic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index ed03018..b3f9f1e 100644

[OE-core] [wic][PATCH v3 12/14] wic-image-minimal: use uuid for root partition

2016-02-13 Thread Ed Bartosh
partition table. (From OE-Core rev: ba82867bfda54e86e1de5dc4a6ad7246254cf5c3) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta-selftest/recipes-test/images/wic-image-minimal.wks | 4 ++-- 2 files changed, 3

[OE-core] [wic][PATCH v3 08/14] wic-image-minimal: change IMAGE_FSTYPES

2016-02-13 Thread Ed Bartosh
OE-Core rev: 3ce91db94f4b921566dce0dc6f91a422009be06b) Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta/lib/oeqa/selftest/wic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.bb b/me

Re: [OE-core] [PATCH] wic: don't throw away our created swap partition

2016-02-29 Thread Ed Bartosh
Hi Cristopher, Thank you for the patch! Acked-by: Ed Bartosh On Thu, Feb 25, 2016 at 10:21:49AM -0700, Christopher Larson wrote: > From: Christopher Larson > > We were creating the partition, mkswap'ing it, and then not dd'ing it into > place in the final image, as so

[OE-core] [PATCH] bootimg: set default value for LABELS variable

2016-03-01 Thread Ed Bartosh
With empty LABELS variable build_efi_cfg skips most of its functionality producing warning message: 'LABELS not defined, nothing to do' This causes build failure for efi images. Setting default value for LABELS to 'boot install' should fix this issue. Signed-off-by: E

[OE-core] [PATCH] image.bbclass: run wicenv task only for wic images

2016-03-21 Thread Ed Bartosh
icenv for all images. Added explicit dependency to this task in wic-image-minimal recipe. [YOCTO #9095] Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta/classes/image.bbclass | 2 +- 2 files changed, 2 insertions(

[OE-core] [PATCH v2] image.bbclass: run wicenv task only for wic images

2016-03-23 Thread Ed Bartosh
icenv for all images. Added explicit dependency to this task in wic-image-minimal recipe. [YOCTO #9095] Signed-off-by: Ed Bartosh --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta/classes/image.bbclass | 2 +- 2 files changed, 2 insertions(

[OE-core] [wic][PATCH] wic: fix type of no-table option

2016-03-23 Thread Ed Bartosh
the issue. Signed-off-by: Ed Bartosh --- scripts/lib/wic/ksparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 2f1e097..8c3f808 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py @@ -11

[OE-core] [PATCH] buildhistory-diff: reduce PKGR noise

2016-07-08 Thread Ed Bartosh
. All changes are still included in the output if script is run with -a/--report-all command line option. [YOCTO #9755] Signed-off-by: Ed Bartosh --- meta/lib/oe/buildhistory_analysis.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/meta/lib/oe/buildhistory_analysis.py b

[OE-core] [PATCH] sstate.bbclass: make PV to depend on PV variable value

2016-07-11 Thread Ed Bartosh
s when recipe filename changes. Making PV to explicitly depend on PV variable value overrides default behaviour. Instead of depending on python expression bitbake depends on evaluated value of PV variable, which should fix the above mentioned issue. [YOCTO #9806] Signed-off-by: Ed Bartosh --- m

Re: [OE-core] [PATCH] wic: mountpoint is an optional argument

2016-07-14 Thread Ed Bartosh
Hi Maciej, Thank you for the patch! It looks good to me. Acked-by: Ed Bartosh BTW, the same effect can be achieved by specifying mount point without leading slash, i.e. part mirror --ondisk sda On Tue, Jul 12, 2016 at 01:37:25PM +0200, Maciej Borzecki wrote: > According to

[OE-core] [wic][PATCH] wic: oe-selftest: build bmap-tools-native

2016-07-15 Thread Ed Bartosh
. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/wic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 895c6d6..e550785 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py

[OE-core] [PATCH] uncovered: list uncovered python modules

2016-07-26 Thread Ed Bartosh
/uncovered bitbake/ should print list of uncovered python modules from bitbake/ directory tree to stdout. [YOCTO #9809] Signed-off-by: Ed Bartosh --- scripts/contrib/uncovered | 39 +++ 1 file changed, 39 insertions(+) create mode 100755 scripts/contrib

[OE-core] 2.7% build time regression caused by enabling debug/printk.scc KERNEL_FEATURE

2016-07-26 Thread Ed Bartosh
Hi all, We've noticed quite big increase of core-image-minimal build time caused by commit d55b7650d305ffad953dd36595ee6b9aa8df5a72 linux-yocto: Enablei debug/printk.scc KERNEL_FEATURE on qemuall machines. Here are results of /usr/bin/time -v bitbake core-image-minimal for this and previous com

Re: [OE-core] 2.7% build time regression caused by enabling debug/printk.scc KERNEL_FEATURE]

2016-07-27 Thread Ed Bartosh
Hi Bruce, Thank you for your suggestion to experiment with configuration options! > On 2016-07-26 10:32 AM, Ed Bartosh wrote: > >Hi all, > > > >We've noticed quite big increase of core-image-minimal build time caused by > >commit > >d55b7650d305ffad953dd36

[OE-core] [PATCH v4 0/4] image creation improvements

2016-07-27 Thread Ed Bartosh
Hi, This patchset contains various improvements for the image creation functionality made by Patchick Ohly during his work on bug #9076: - fixed dependency calculation for conversion chaining - renamed COMPRESSION variables to CONVERSION as the term "compression" is no longer accurate - priori

[OE-core] [PATCH v4 1/4] image.bbclass: fix dependency calculation when using conversion chaining

2016-07-27 Thread Ed Bartosh
laced with setting the normal IMAGE_DEPENDS variables for these types. [YOCTO #9076] Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 19 ++--- meta/classes/image_types.bbclass | 60 2 files change

[OE-core] [PATCH v4 3/4] image.bbclass: rename COMPRESS(ION) to CONVERSION

2016-07-27 Thread Ed Bartosh
including COMPRESSIONTYPES in CONVERSIONTYPES and checking for the old COMPRESS_CMD/DEPENDS as fallbacks. [YOCTO #9346] Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 10 +++--- meta/classes/image_types.bbclass

[OE-core] [PATCH v4 4/4] image.bbclass: prefer specialized image creation methods over chaining

2016-07-27 Thread Ed Bartosh
skip generating the conversion commands. That way developers can choose between using the builtin conversion support or re-implementing certain types, for example more efficiently without intermediate files. [YOCTO #9076] Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes

[OE-core] [PATCH v4 2/4] image creation: support converting masked types

2016-07-27 Thread Ed Bartosh
mpressed format, for example with: IMAGE_FSTYPES = "hdddirect.vdi.xz" Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes/image-live.bbclass| 2 +- meta/classes/image-vm.bbclass | 33 ++ meta/classes/image.bbclas

Re: [OE-core] 2.7% build time regression caused by enabling debug/printk.scc KERNEL_FEATURE]

2016-07-27 Thread Ed Bartosh
On Wed, Jul 27, 2016 at 09:06:44AM -0400, Bruce Ashfield wrote: > On 2016-07-27 08:28 AM, Ed Bartosh wrote: > >Hi Bruce, > > > >Thank you for your suggestion to experiment with configuration options! > > > >>On 2016-07-26 10:32 AM, Ed Bartosh wrote: > >&g

Re: [OE-core] 2.7% build time regression caused by enabling debug/printk.scc KERNEL_FEATURE]

2016-07-28 Thread Ed Bartosh
On Wed, Jul 27, 2016 at 03:58:16PM -0500, Aníbal Limón wrote: > > > On 07/27/2016 03:06 PM, Sullivan, California L wrote: > > Adding the debug-kernel fragment to the printk fragment was probably a > > mistake on my part. I don't see anything that requires it. > > > > I'm also seeing another issu

Re: [OE-core] [PATCH v4 1/4] image.bbclass: fix dependency calculation when using conversion chaining

2016-07-29 Thread Ed Bartosh
On Thu, Jul 28, 2016 at 09:42:44PM +0100, Richard Purdie wrote: > On Wed, 2016-07-27 at 15:51 +0300, Ed Bartosh wrote: > > From: Patrick Ohly > > > > When using conversion chaining (for example example: .dsk.vdi.xz), > > the imagetypes_getdepends() did not prop

Re: [OE-core] does "wic" allow one to actually format physical devices?

2016-07-29 Thread Ed Bartosh
On Thu, Jul 28, 2016 at 05:30:14PM -0400, Robert P. J. Day wrote: > > never used "wic" before, and i'm wondering if it has the ability to > not create dd-able images so much as partition and format physical > target devices. surely, the underlying logic would be the same, i just > want to work w

Re: [OE-core] does "wic" allow one to actually format physical devices?

2016-07-29 Thread Ed Bartosh
On Fri, Jul 29, 2016 at 06:19:13AM -0400, Robert P. J. Day wrote: > On Fri, 29 Jul 2016, Ed Bartosh wrote: > > > On Thu, Jul 28, 2016 at 05:30:14PM -0400, Robert P. J. Day wrote: > > > > > > never used "wic" before, and i'm wondering if it has the

[OE-core] [PATCH v5 1/2] image creation: support converting masked types

2016-07-29 Thread Ed Bartosh
mpressed format, for example with: IMAGE_FSTYPES = "hdddirect.vdi.xz" Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes/image-live.bbclass| 2 +- meta/classes/image-vm.bbclass | 33 ++ meta/classes/image.bbclas

[OE-core] [PATCH v5 2/2] image.bbclass: rename COMPRESS(ION) to CONVERSION

2016-07-29 Thread Ed Bartosh
including COMPRESSIONTYPES in CONVERSIONTYPES and checking for the old COMPRESS_CMD/DEPENDS as fallbacks. [YOCTO #9346] Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 9 ++--- meta/classes/image_types.bbclass | 60 +-

[OE-core] [PATCH v5 0/2] mage creation improvements

2016-07-29 Thread Ed Bartosh
Hi, This patchset contains various improvements for the image creation functionality made by Patchick Ohly during his work on bug #9076: - renamed COMPRESSION variables to CONVERSION as the term "compression" is no longer accurate - support converting masked types Changes in v2: rebased on top

[OE-core] [PATCH] image.bbclass: rename COMPRESS(ION) to CONVERSION

2016-07-29 Thread Ed Bartosh
including COMPRESSIONTYPES in CONVERSIONTYPES and checking for the old COMPRESS_CMD/DEPENDS as fallbacks. [YOCTO #9346] Signed-off-by: Patrick Ohly Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 9 +++--- meta/classes/image_types.bbclass

Re: [OE-core] [PATCH v5 1/2] image creation: support converting masked types

2016-07-29 Thread Ed Bartosh
On Fri, Jul 29, 2016 at 03:36:12PM +0100, Richard Purdie wrote: > On Fri, 2016-07-29 at 15:29 +0100, Richard Purdie wrote: > > On Fri, 2016-07-29 at 16:44 +0300, Ed Bartosh wrote: > > > From: Patrick Ohly > > > > > > Conversion to vmdk/vdi/qcow2 is also usef

Re: [OE-core] [PATCH 19/20] oeqa.selftest.wic: Split configuration from code

2016-08-09 Thread Ed Bartosh
Hi Jose, On Mon, Aug 08, 2016 at 09:23:07AM -0700, Jose Lamego wrote: > Improve oeqa-selftest capabilities and UX by placing > test configuration features and variables into a separate > configuration file. > Frankly I have mixed feelings about these changes. From the first look splitting config

[OE-core] [PATCH] image_types: use COMPRESSIONTYPES variable for backward compatibility

2016-08-19 Thread Ed Bartosh
Recent renaming of COMPRESSIONTYPES variable can break recipes that still use it. Including value of COMPRESSIONTYPES variable into CONVERSIONTYPES should prevent this. Signed-off-by: Ed Bartosh --- meta/classes/image_types.bbclass | 8 +++- 1 file changed, 7 insertions(+), 1 deletion

[OE-core] [PATCH] syslinux.bbclass: ensure creation of output directory

2016-08-19 Thread Ed Bartosh
Made build_syslinux_cfg depend on output directory to ensure that directory is created before running the function. [YOCTO #10159] Signed-off-by: Ed Bartosh --- meta/classes/syslinux.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/syslinux.bbclass b/meta/classes

[OE-core] [PATCH] rm_work: don't remove timestamps of image tasks

2016-08-22 Thread Ed Bartosh
Excluded removal of do_bootimg, do_bootdirectdisk and do_vmimg timestamps to prevent unneeded rootfs rebuilds. [YOCTO #10159] Signed-off-by: Ed Bartosh --- meta/classes/rm_work.bbclass | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/meta/classes/rm_work.bbclass

[OE-core] [PATCH] combo-layer: python3: fix UnicodeDecodeError

2016-08-24 Thread Ed Bartosh
ry type instead of strings should fix this. Signed-off-by: Ed Bartosh --- scripts/combo-layer | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/combo-layer b/scripts/combo-layer index 8f57ba5..b90bfc8 100755 --- a/scripts/combo-layer +++ b/scripts/combo-l

[OE-core] [PATCH 01/18] image-live.bbclass: deploy images to DEPLOYDIR

2016-08-30 Thread Ed Bartosh
Changed deployment directory from DEPLOY_DIR_IMAGE to DEPLOYDIR to make sstate machinery to do final deployment and generate manifest. Signed-off-by: Ed Bartosh --- meta/classes/image-live.bbclass | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/classes

[OE-core] [PATCH 00/18] Provide list of deployment artifacts

2016-08-30 Thread Ed Bartosh
script failing when not finding any mmcblk devices (2016-08-30 07:57:50 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/oe-core/artifacts-9869 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/oe-core/artifacts-9869 Ed Bartosh (18

[OE-core] [PATCH 04/18] image.bbclass: deploy images to DEPLOYDIR

2016-08-30 Thread Ed Bartosh
Changed deployment directory from DEPLOY_DIR_IMAGE to DEPLOYDIR to make sstate machinery to do final deployment and generate manifest. Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 2 +- meta/classes/image_types.bbclass | 44 2 files

[OE-core] [PATCH 03/18] image.bbclass: deploy images to DEPLOYDIR

2016-08-30 Thread Ed Bartosh
Changed deployment directory from DEPLOY_DIR_IMAGE to DEPLOYDIR to make sstate machinery to do final deployment and generate manifest. Signed-off-by: Ed Bartosh --- meta/classes/image.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/image.bbclass b

[OE-core] [PATCH 05/18] image_types_uboot.bbclass: deploy images to DEPLOYDIR

2016-08-30 Thread Ed Bartosh
Changed deployment directory from DEPLOY_DIR_IMAGE to DEPLOYDIR to make sstate machinery to do final deployment and generate manifest. Signed-off-by: Ed Bartosh --- meta/classes/image_types_uboot.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes

<    7   8   9   10   11   12   13   14   >