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
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/
: 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(-)
-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
: 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
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/
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
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
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
-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
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
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
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
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
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
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
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
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
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.
.
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
/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
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
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
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
.
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
:
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
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
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
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.
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
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
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
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
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
.
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
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
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
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 |
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
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
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(+)
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
://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
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
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
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
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
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
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
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(
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.
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
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
/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
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
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
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
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
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(
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.
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(
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
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
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
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
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
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
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
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
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
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
401 - 500 of 1320 matches
Mail list logo