[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 <ed.bart...@linux.intel.com> Signed-off-by: Richard Purdie <ri

[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 <ed.bart...@linux.intel.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- scripts/

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

2016-02-13 Thread Ed Bartosh
: 3f8b734ebb81d035849288091bb0b97b9c4fba34) Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- meta/lib/oeqa/utils/qemurunner.py | 45 --- 1 file changed, 23 insertions(+), 22 deletions(-)

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

2016-02-13 Thread Ed Bartosh
-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 <ed.bart...@linux.intel.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfound

[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 <ed.bart...@linux.intel.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- meta/lib/oeqa/selftest/wic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selft

[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 <ed.bart...@linux.intel.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta-selftest/

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

2016-02-13 Thread Ed Bartosh
re rev: 3ce91db94f4b921566dce0dc6f91a422009be06b) Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- 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/imag

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. > > > > Removed if=vi

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

2016-02-02 Thread Ed Bartosh
/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/-.wic oe-selftest

[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 <ed.bart...@linux.intel.com> --- meta/lib/oeqa/targetcontrol.py | 18 ++ meta/lib/oeqa/utils/commands.py | 4 ++-- 2

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

2016-02-02 Thread Ed Bartosh
From: Ed Bartosh <bart...@gmail.com> Removed unused parameter 'test' from runqemu function. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/devtool.py | 2 +- meta/lib/oeqa/selftest/imagefeatures.py | 6 +++--- meta/lib/oeqa/utils/commands.py

[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 <ed.bart...@linux.intel.com> --- meta/lib/oeqa/targetcontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 de

[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 <ed.bart...@linux.intel.com> --- scripts/runqemu | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 0

[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 <ed.bart...@linux.intel.com> --- scripts/runqemu | 3 ++- scripts/runqemu-internal | 16 2 files changed, 10 inse

[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 <e

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

2016-02-02 Thread Ed Bartosh
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] Signed-off-by: Ed Bartosh

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

2016-02-02 Thread Ed Bartosh
path. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- 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/s

[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 <ed.bart...@linux.intel.com> --- scripts/r

[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 <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/wic.py | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff

[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 <ed.bart...@linux.intel.com> --- meta-selftest/recipe

[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 Bartosh

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

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

[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 <ed.bart...@linux.intel.com> --- meta-selftest/recipes-test/images/

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
1 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 runqemu: don't

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

2016-02-02 Thread Ed Bartosh
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] Signed-off-by: Ed Bartosh

[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 <bart...@gmail.com> Removed unused parameter 'test' from runqemu function. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/devtool.py | 2 +- meta/lib/oeqa/selftest/imagefeatures.py | 6 +++--- meta/lib/oeqa/utils/commands.py

[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 <ed.bart...@linux.intel.com> --- scripts/runqemu | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 0

[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 <ed.bart...@linux.intel.com> --- scripts/runqemu | 3 ++- scripts/runqemu-internal | 16 2 files changed, 10 inse

[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 <ed.bart...@linux.intel.com> --- meta/lib/oeqa/targetcontrol.py | 18 ++ meta/lib/oeqa/utils/commands.py | 4 ++-- 2

[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 <ed.bart...@linux.intel.com> --- meta/lib/oeqa/targetcontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 de

[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 Bartosh

[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 <e

[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 <ed.bart...@linux.intel.com> --- 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/recipe

[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 <ed.bart...@linux.intel.com> --- meta-selftest/recipes-test/images/

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

2016-02-02 Thread Ed Bartosh
path. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- 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/s

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

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

[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 <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/wic.py | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff

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 <ed.bart...@linux.intel.com> On Thu, Feb 25, 2016 at 10:21:49AM -0700, Christopher Larson wrote: > From: Christopher Larson <chris_lar...@mentor.com> > > We were creating the partition, mkswap'ing it

[OE-core] [wic][PATCH v2 8/9] wic: add help for 'include' command

2016-01-19 Thread Ed Bartosh
Added description of 'include' parser command to the 'wic help kickstart' output. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/help.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index f

[OE-core] [wic][PATCH v2 4/9] wic: ksparser: add support for include

2016-01-19 Thread Ed Bartosh
Extended parser to support inclusion of .ks files: recursively called self._parse to parse included .ks Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/lib/wic/kspar

[OE-core] [wic][PATCH v2 6/9] wic: implement search of includes

2016-01-19 Thread Ed Bartosh
Used custom argument type to implement search of include .wks files in canned wks paths. Include files can be specified either by full path or by name. [YOCTO #8848] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 16 ++-- 1 file chang

[OE-core] [wic][PATCH v2 7/9] wic: move parts of canned .wks into common.wks.inc

2016-01-19 Thread Ed Bartosh
In order to give and example of 'include' feature of ks parser and for testing purposes common parts of 3 canned wks files were moved into common.wks.inc Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/canned-wks/common.wks.inc | 3 +++ scrip

[OE-core] [wic][PATCH v2 5/9] wic: refactor get_boot_config

2016-01-19 Thread Ed Bartosh
pdated description. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/misc.py | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py index d886d75..1415ae9 100644 --- a/scr

[OE-core] [wic][PATCH v2 9/9] wic: pylinted ksparser module

2016-01-19 Thread Ed Bartosh
Added missing docstrings, fixed wrong indentation and long lines. Final pylint score is 9.89/10 Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/lib/wic/kspar

[OE-core] [wic][PATCH v2 2/9] wic: use unique partition number

2016-01-19 Thread Ed Bartosh
This is a preparation for 'include' support. Used unique counter instead of line number for partitions in .ks file. Line numbers can be equal for different .ks files, which can cause problems if one .ks file is included into another. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.

[OE-core] [wic][PATCH v2 3/9] wic: do not remove build dir in source plugins

2016-01-19 Thread Ed Bartosh
. Moved work directory removal to direct.py before processing partitions. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/imager/direct.py| 3 +++ scripts/lib/wic/plugins/source/bootimg-efi.py | 2 -- scripts/lib/wic/plugins/source/b

[OE-core] [wic][PATCH v2 0/9] wic: implement 'include' command

2016-01-19 Thread Ed Bartosh
/poky-contrib/log/?h=ed/wic/kickstart-include-8848 Ed Bartosh (9): wic: move wks parsing code to KickStart._parse wic: use unique partition number wic: do not remove build dir in source plugins wic: ksparser: add support for include wic: refactor get_boot_config wic: implement search

[OE-core] [wic][PATCH v2 1/9] wic: move wks parsing code to KickStart._parse

2016-01-19 Thread Ed Bartosh
This is a preparation for implementation of include statement. Parser will be called recursively to parse included .wks files, so it should be available as a method. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 3 +++ 1 file changed, 3 inse

[OE-core] [PATCH 7/8] wic: move parts of canned .wks into common.wks.inc

2016-01-19 Thread Ed Bartosh
In order to give and example of 'include' feature of ks parser and for testing purposes common parts of 3 canned wks files were moved into common.wks.inc Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/canned-wks/common.wks.inc | 3 +++ scrip

[OE-core] [PATCH 1/8] wic: move wks parsing code to KickStart._parse

2016-01-19 Thread Ed Bartosh
This is a preparation for implementation of include statement. Parser will be called recursively to parse included .wks files, so it should be available as a method. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 3 +++ 1 file changed, 3 inse

[OE-core] [PATCH 3/8] wic: do not remove build dir in source plugins

2016-01-19 Thread Ed Bartosh
. Moved work directory removal to direct.py before processing partitions. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/imager/direct.py| 3 +++ scripts/lib/wic/plugins/source/bootimg-efi.py | 2 -- scripts/lib/wic/plugins/source/b

[OE-core] [PATCH 0/8] wic: implement 'include' command

2016-01-19 Thread Ed Bartosh
: classes/populate_sdk_ext: fix task dependency regression (2016-01-18 15:06:01 +) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wic/kickstart-include-8848 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/kickstart-include-8848 Ed Bartosh

[OE-core] [PATCH 5/8] wic: refactor get_boot_config

2016-01-19 Thread Ed Bartosh
pdated description. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/misc.py | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py index d886d75..1415ae9 100644 --- a/scr

[OE-core] [PATCH 8/8] wic: add help for 'include' command

2016-01-19 Thread Ed Bartosh
Added description of 'include' parser command to the 'wic help kickstart' output. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/help.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index f

[OE-core] [PATCH 2/8] wic: use unique partition number

2016-01-19 Thread Ed Bartosh
This is a preparation for 'include' support. Used unique counter instead of line number for partitions in .ks file. Line numbers can be equal for different .ks files, which can cause problems if one .ks file is included into another. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.

[OE-core] [PATCH 4/8] wic: ksparser: add support for include

2016-01-19 Thread Ed Bartosh
Extended parser to support inclusion of .ks files: recursively called self._parse to parse included .ks Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/lib/wic/kspar

[OE-core] [PATCH 6/8] wic: implement search of includes

2016-01-19 Thread Ed Bartosh
Used custom argument type to implement search of include .wks files in canned wks paths. Include files can be specified either by full path or by name. [YOCTO #8848] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 14 +- 1 file chang

[OE-core] [wic][PATCH] wic: fix bug in handling fsoptions

2016-04-13 Thread Ed Bartosh
Partitions specifying --fsoptions were silently skipped by wic due to the old bug introduced when removing code related to subvolume handling: - if mountpoint == "/" or not fsopts or fsopts.find("subvol=") == -1 + if mountpoint == "/" or not fsopts: [YOCTO #93

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

2016-03-23 Thread Ed Bartosh
for all images. Added explicit dependency to this task in wic-image-minimal recipe. [YOCTO #9095] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta/classes/image.bbclass | 2 +- 2

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

2016-03-21 Thread Ed Bartosh
for all images. Added explicit dependency to this task in wic-image-minimal recipe. [YOCTO #9095] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +- meta/classes/image.bbclass | 2 +- 2

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

2016-03-23 Thread Ed Bartosh
. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- 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/l

[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: Ed Bartosh <ed.b

[OE-core] [wic][PATCH] oe-selftest: generate .env only in test_image_env

2016-03-29 Thread Ed Bartosh
Most of wic functionality doesn't depend on .wicenv file, so it's better to generate it only in test_image_env test case where it's used. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/wic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[OE-core] [wic][PATCH 3/6] wic: add system_id attribute to Partition

2016-04-22 Thread Ed Bartosh
Added Partition.system_id attribute and initialized it from parse result of wks option --system-id. It will be used by the wic code below the call stack to set partition system id. [YOCTO #9096] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/partition.py |

[OE-core] [wic][PATCH 4/6] wic: add system_id argument to Image.add_partition

2016-04-22 Thread Ed Bartosh
Added new argument to add_partition call to pass partition system id down the stack. [YOCTO #9096] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/imager/direct.py | 3 ++- scripts/lib/wic/utils/partitionedfs.py | 2 +- 2 files changed, 3 insertions

[OE-core] [wic][PATCH 5/6] wic: set partition system id

2016-04-22 Thread Ed Bartosh
Used sfdisk to set partition system id if --system-id parameter is used for a partition in wks file. [YOCTO #9096] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/partitionedfs.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/s

[OE-core] [wic][PATCH 2/6] wic: add sfdisk to the list of utilities

2016-04-22 Thread Ed Bartosh
Added sfdisk -> util-linux pair to the dictionary executable -> recipe as sfdisk is going to be used by wic to set partition system id. [YOCTO #9096] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/oe/misc.py | 1 + 1 file changed, 1 insertion(+)

[OE-core] [wic][PATCH 6/6] wic: add help for --system-id option

2016-04-22 Thread Ed Bartosh
Added explanation of --system-id option to the output of wic help kickstart. [YOCTO #9096] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/help.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 4

[OE-core] [wic][PATCH 0/6] new wks option --system-id

2016-04-22 Thread Ed Bartosh
://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/part-system-id-9096 Ed Bartosh (6): wic: add --system-id wks option wic: add sfdisk to the list of utilities wic: add system_id attribute to Partition wic: add system_id argument to Image.add_partition wic: set partition system id wic: add

[OE-core] [wic][PATCH 1/6] wic: add --system-id wks option

2016-04-22 Thread Ed Bartosh
Added new option --system-id to wks parser. The option will be used to set partition system id. [YOCTO #9096] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/ksparser.py | 19 +++ 1 file changed, 19 insertions(+) diff --git a/scripts/l

Re: [OE-core] [PATCH v3 1/2] wic: isoimage-isohybrid: add grubefi configfile support

2016-04-21 Thread Ed Bartosh
Hi Ioan-Adrian, Great! Thank you! Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> On Thu, Apr 21, 2016 at 01:10:12PM +0300, Ioan-Adrian Ratiu wrote: > The latest wic kickstart refactoring introduced a bootloader option > "--configfile" which lets wks' specify a c

[OE-core] [wic][PATCH 4/6] wic: moved DiskImage to direct.py

2016-04-28 Thread Ed Bartosh
Moved DiskImage class from utils/fs_related.py to imager/direct.py as it's only used there. Removed fs_related module as it doesn't contain anything except of DiskImage. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/imager/direct.py

[OE-core] [wic][PATCH 1/6] wic: use truncate utility to create sparse file

2016-04-28 Thread Ed Bartosh
made it not 100% sparse. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/fs_related.py | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/scripts/lib/wic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py index 2

[OE-core] [wic][PATCH 5/6] wic: add FIEMAP/SEEK_HOLE APIs from bmaptool

2016-04-28 Thread Ed Bartosh
sparseness. Note that this module will be removed as soon as bmaptool utility supports copying sparse source file into destination file (this is already agreed with the maintainer of bmap-tools project). [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/l

[OE-core] [wic][PATCH 3/6] wic: get rid of fs_related.makedirs

2016-04-28 Thread Ed Bartosh
Removed fs_related.makedirs as is not used anywhere. The name is easy to confuse with os.makedirs. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/fs_related.py | 14 -- 1 file changed, 14 deletions(-) diff --git a/scripts/lib/wic/utils/fs_rela

[OE-core] [wic][PATCH 2/6] wic: get rid of inheritance Disk->DiskImage

2016-04-28 Thread Ed Bartosh
There is no need in this inheritance as DiskImage class is used only in one module and no other classes are inherited. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/fs_related.py | 43 - 1 file changed, 9 insertions(

[OE-core] [wic][PATCH 6/6] wic: use sparse_copy to copy partitions

2016-04-28 Thread Ed Bartosh
Copied partition images into final partitioned image using sparse_copy API. This method preserves sparseness of the final image. It also makes wic much faster, as unmapped blocks of the partition images are not copied. [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.

Re: [OE-core] [wic][PATCH 1/6] wic: use truncate utility to create sparse file

2016-04-28 Thread Ed Bartosh
Please, igrnore. I'll send updated patchset today. On Thu, Apr 28, 2016 at 10:14:52AM +0300, Ed Bartosh wrote: > Used truncate instead of dd to create wic image for the > following reasons: > - truncate syntax is much more clear > - dd requires additional calculations of th

[OE-core] [wic][PATCH v2 5/8] wic: add FIEMAP and SEEK_HOLE / SEEK_DATA APIs

2016-04-28 Thread Ed Bartosh
and the 'SEEK_HOLE / SEEK_DATA' features of the file seek syscall. Note that this module will be removed as soon as bmaptool utility supports copying sparse source file into destination file (this is already agreed with the maintainer of bmap-tools project). [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.b

[OE-core] [wic][PATCH v2 0/8] make wic images sparse (#9099)

2016-04-28 Thread Ed Bartosh
/sparse-9099 Ed Bartosh (8): wic: use truncate utility to create sparse files wic: get rid of inheritance Disk->DiskImage wic: get rid of fs_related.makedirs wic: moved DiskImage to direct.py wic: add FIEMAP and SEEK_HOLE / SEEK_DATA APIs wic: add sparse_copy API wic: use sparse_c

[OE-core] [wic][PATCH v2 3/8] wic: get rid of fs_related.makedirs

2016-04-28 Thread Ed Bartosh
Removed fs_related.makedirs as is not used anywhere. The name is easy to confuse with os.makedirs. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/fs_related.py | 14 -- 1 file changed, 14 deletions(-) diff --git a/scripts/lib/wic/utils/fs_rela

[OE-core] [wic][PATCH v2 8/8] wic: use sparse_copy to preserve sparseness

2016-04-28 Thread Ed Bartosh
Used sparse_copy API in favor of dd/cp in rawcopy plugin to preserve sparseness of the copied raw content. [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/plugins/source/rawcopy.py | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[OE-core] [wic][PATCH v2 4/8] wic: moved DiskImage to direct.py

2016-04-28 Thread Ed Bartosh
Moved DiskImage class from utils/fs_related.py to imager/direct.py as it's only used there. Removed fs_related module as it doesn't contain anything except of DiskImage. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/imager/direct.py

[OE-core] [wic][PATCH v2 6/8] wic: add sparse_copy API

2016-04-28 Thread Ed Bartosh
to satisfy wic requirements: parameter 'skip' has been added. [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/filemap.py | 30 ++ 1 file changed, 30 insertions(+) diff --git a/scripts/lib/wic/filemap.py b/scripts/l

[OE-core] [wic][PATCH v2 1/8] wic: use truncate utility to create sparse files

2016-04-28 Thread Ed Bartosh
it was writing one block to the file which makes it not 100% sparse. [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/partition.py| 20 +--- scripts/lib/wic/utils/fs_related.py | 12 +++- 2 files changed, 8 insertions(

[OE-core] [wic][PATCH v2 7/8] wic: use sparse_copy to copy partitions

2016-04-28 Thread Ed Bartosh
Copied partition images into final partitioned image using sparse_copy API. This method preserves sparseness of the final image. It also makes wic much faster, as unmapped blocks of the partition images are not copied. [YOCTO #9099] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.

[OE-core] [wic][PATCH v2 2/8] wic: get rid of inheritance Disk->DiskImage

2016-04-28 Thread Ed Bartosh
There is no need in this inheritance as DiskImage class is used only in one module and no other classes are inherited. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- scripts/lib/wic/utils/fs_related.py | 43 - 1 file changed, 9 insertions(

[OE-core] [PATCH 0/3] bmaptool support

2016-04-26 Thread Ed Bartosh
org/cgit.cgi/poky-contrib/log/?h=ed/oe-core/bmap-tools-9414 Alexander D. Kanevskiy (2): bmap-tools: utility to create block map files image types: add bmap generation option Ed Bartosh (1): selftest: add bmap test meta/classes/image_types.bbclass | 4 ++- meta

[OE-core] [PATCH 1/3] bmap-tools: utility to create block map files

2016-04-26 Thread Ed Bartosh
nstalled. [YOCTO #9414] Signed-off-by: Alexander D. Kanevskiy <k...@kad.name> Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/recipes-support/bmap-tools/bmap-tools_3.2.bb | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 meta/recipes-support

[OE-core] [PATCH 2/3] image types: add bmap generation option

2016-04-26 Thread Ed Bartosh
D. Kanevskiy <k...@kad.name> Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/classes/image_types.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 53af7ca..19f89

[OE-core] [PATCH 3/3] selftest: add bmap test

2016-04-26 Thread Ed Bartosh
Added test_bmap to imagefeatures tests. It tests if bmap file is generated for the images and if the image is sparse. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/imagefeatures.py | 27 +++ 1 file changed, 27 insertions(+) diff

[OE-core] [PATCH v2 3/3] selftest: add bmap test

2016-04-27 Thread Ed Bartosh
Added test_bmap to imagefeatures tests. It tests if bmap file is generated for the images and if the image is sparse. [YOCTO #9414] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/imagefeatures.py | 27 +++ 1 file changed, 27 inse

[OE-core] [PATCH v2 0/3] bmaptool support

2016-04-27 Thread Ed Bartosh
exists (2016-04-22 16:28:57 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/oe-core/bmap-tools-9414 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/oe-core/bmap-tools-9414 Alexander D. Kanevskiy (1): image types: add bmap generation option Ed

[OE-core] [PATCH v2 2/3] image types: add bmap generation option

2016-04-27 Thread Ed Bartosh
D. Kanevskiy <k...@kad.name> Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/classes/image_types.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 53af7ca..19f89

[OE-core] [PATCH v2 1/3] bmap-tools: initial commit, version 3.2

2016-04-27 Thread Ed Bartosh
or flashed a lot faster with bmaptool than with traditional tools like "dd" or "cp". [YOCTO #9414] Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/recipes-support/bmap-tools/bmap-tools_3.2.bb | 24 +++ 1 file changed, 24 insertions(+) creat

Re: [OE-core] Wic and "live" images

2016-05-23 Thread Ed Bartosh
On Thu, May 19, 2016 at 05:52:45AM -0400, Ian Geiser wrote: > Greetings, I am trying to learn "wic" and have been confused as how to create > a "live" style image. I am following > "http://www.yoctoproject.org/docs/1.5.2/dev-manual/dev-manual.html#creating-partitioned-images; > but am getting

[OE-core] [wic][PATCH 4/4] oe-selftest: wic: add test_bmap test case

2016-05-18 Thread Ed Bartosh
Tested generation of .bmap file using wic --bmap command line option. Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/lib/oeqa/selftest/wic.py | 8 1 file changed, 8 insertions(+) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index a

<    1   2   3   4   5   6   7   8   9   10   >