[OE-core] [PATCH] Use the built-in options for removing pack tools

2021-06-16 Thread ed
From: Ed Tanous For distros that want to use the ENABLE_LIB_ONLY option, the rm call will fail, because ENABLE_HPACK_TOOLS (set implicitly as part of ENABLE_LIB_ONLY) removes those two binaries from the build, so they then can't be removed again. This commit sets ENABLE_HPACK_TOOLS=OFF,

Re: [OE-core] [PATCHv2 0/5] Enable wic in eSDK

2018-01-12 Thread Ed Bartosh
_ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH v2] wic: if we can't get from ioctl, try from os.stat()

2018-01-10 Thread Ed Bartosh
> > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH 1/1] wic: argparse now used for help functionality.

2017-12-19 Thread Ed Bartosh
On Tue, Dec 12, 2017 at 03:54:04AM -0800, anelliot wrote: > The wic help output formally consisted of manually created strings mixed with > argparse, > which wasunformatted and unusable. This fix cleans up the help messages, > rewrites help > functionality to use argparse, and adds functionality

Re: [OE-core] [PATCH] wic: support filesystem label for rawcopy

2017-11-29 Thread Ed Bartosh
oe_builddir, bootimg_dir, kernel_dir, > @@ -66,4 +85,7 @@ class RawCopyPlugin(SourcePlugin): > if filesize > part.size: > part.size = filesize > > +if part.label: > +RawCopyPlugin.do_image_label(part.fstype, dst, part.label) > + > part.source_file = dst > -- >

Re: [OE-core] [PATCHv2 0/4] wic: Further enhance UUID / fstab support

2017-11-22 Thread Ed Bartosh
for a UUID mount > and the UUID that we've given. I think this is cleaner than adding a > python function to make a wks file just for this task. > > -- > Tom -- -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH] wic: fallback to dd, if sparse_copy does not work

2017-11-22 Thread Ed Bartosh
t;Installed %s in partition %d, sectors %d-%d, " > "size %d sectors", source, part.num, part.start, > -- > 2.7.4 > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.or

Re: [OE-core] [PATCH 1/2] wic: When using --use-uuid make sure that we update the fstab with PARTUUID

2017-11-08 Thread Ed Bartosh
On Wed, Nov 08, 2017 at 10:00:54AM -0500, Tom Rini wrote: > On Wed, Nov 08, 2017 at 01:20:15PM +0200, Ed Bartosh wrote: > > On Tue, Nov 07, 2017 at 09:54:57AM -0500, Tom Rini wrote: > > > On Tue, Nov 07, 2017 at 10:11:35AM +0200, Ed Bartosh wrote: > > > > On Mon, No

Re: [OE-core] [rocko][PATCH] wic: add 'part-name' argument for naming GPT partitions

2017-11-08 Thread Ed Bartosh
part.num, part.part_name) > +exec_native_cmd("sgdisk --change-name=%d:%s %s" % \ > + (part.num, part.part_name, > + self.path), self.native_sysroot) > + > if part.part_typ

Re: [OE-core] [PATCH 1/2] wic: When using --use-uuid make sure that we update the fstab with PARTUUID

2017-11-08 Thread Ed Bartosh
On Tue, Nov 07, 2017 at 09:54:57AM -0500, Tom Rini wrote: > On Tue, Nov 07, 2017 at 10:11:35AM +0200, Ed Bartosh wrote: > > On Mon, Nov 06, 2017 at 07:44:23AM -0500, Tom Rini wrote: > > > On Mon, Nov 06, 2017 at 09:36:20AM -0200, Otavio Salvador wrote: > > > > On M

Re: [OE-core] [PATCH 1/2] wic: When using --use-uuid make sure that we update the fstab with PARTUUID

2017-11-07 Thread Ed Bartosh
ck if partition uids match fstab entries. P.S. Another idea is to extending 'wic cp' or implement 'wic cat'. All ingredients are already in the wic code, so it shouldn't be too hard. -- Regards, Ed -- ___ Openembedde

Re: [OE-core] [PATCH 1/2] wic: When using --use-uuid make sure that we update the fstab with PARTUUID

2017-11-07 Thread Ed Bartosh
On Mon, Nov 06, 2017 at 07:44:23AM -0500, Tom Rini wrote: > On Mon, Nov 06, 2017 at 09:36:20AM -0200, Otavio Salvador wrote: > > On Mon, Nov 6, 2017 at 8:08 AM, Ed Bartosh > > wrote: > > > On Fri, Nov 03, 2017 at 08:51:50AM -0400, Tom Rini wrote: > > >> On F

Re: [OE-core] [PATCH 1/2] wic: When using --use-uuid make sure that we update the fstab with PARTUUID

2017-11-06 Thread Ed Bartosh
; > --- > > > > scripts/lib/wic/plugins/imager/direct.py | 9 ++--- > > > > 1 file changed, 6 insertions(+), 3 deletions(-) > > > > > > Where we did we end up with this? Ed pointed out that you can tell wic > > > to use a specific UUID, s

Re: [OE-core] [PATCH] wic: add 'part-name' argument for naming GPT partitions

2017-11-01 Thread Ed Bartosh
On Tue, Oct 31, 2017 at 04:08:58PM +0100, Nicolas Dechesne wrote: > On Tue, Oct 31, 2017 at 2:33 PM, Ed Bartosh > wrote: > > > > On Mon, Oct 30, 2017 at 08:53:09PM +0100, Artur MÄ…drzak wrote: > > > The WIC's 'part' can now give a name for GPT partition i

Re: [OE-core] [PATCH] wic: add 'part-name' argument for naming GPT partitions

2017-10-31 Thread Ed Bartosh
part.num, part.part_name) > +exec_native_cmd("sgdisk --change-name=%d:%s %s" % \ > + (part.num, part.part_name, > + self.path), self.native_sysroot) > + >

Re: [OE-core] [PATCHv2] image_types: Fix bmaptool support for RSS

2017-10-02 Thread Ed Bartosh
support installed. > Thank you for the patch. +1 > Signed-off-by: Tom Rini > --- > Changes in v2: > - Switch to checking for '.bmap' not 'bmap', per Ed Bartosh. > --- > meta/classes/image_types.bbclass | 3 +++ > 1 file changed, 3 insertions(+) > &

Re: [OE-core] [PATCH] image_types: Fix bmaptool support for RSS

2017-09-29 Thread Ed Bartosh
On Fri, Sep 29, 2017 at 08:36:52AM -0400, Tom Rini wrote: > On Fri, Sep 29, 2017 at 02:16:21PM +0300, Ed Bartosh wrote: > > On Wed, Sep 27, 2017 at 01:00:09PM -0400, Tom Rini wrote: > > > With RSS we need to ensure that when making a bmap image that the > > > python3 t

Re: [OE-core] [PATCH] wic: Generate startup.nsh for EFI cases if none found

2017-09-29 Thread Ed Bartosh
On Fri, Sep 29, 2017 at 08:35:42AM -0400, Tom Rini wrote: > On Fri, Sep 29, 2017 at 02:27:57PM +0300, Ed Bartosh wrote: > > On Thu, Sep 28, 2017 at 01:44:29PM -0400, Tom Rini wrote: > > > On Thu, Sep 28, 2017 at 06:47:07PM +0300, Ed Bartosh wrote: > > > > On Wed, Se

Re: [OE-core] [PATCH] wic: Generate startup.nsh for EFI cases if none found

2017-09-29 Thread Ed Bartosh
On Thu, Sep 28, 2017 at 01:44:29PM -0400, Tom Rini wrote: > On Thu, Sep 28, 2017 at 06:47:07PM +0300, Ed Bartosh wrote: > > On Wed, Sep 20, 2017 at 12:03:27PM -0400, Tom Rini wrote: > > > In the case of non-wic images there is logic today to generate a > > > startup.nsh

Re: [OE-core] [PATCH] image_types: Fix bmaptool support for RSS

2017-09-29 Thread Ed Bartosh
gt; + > +# bmap requires python3 to be in the PATH > +EXTRANATIVEPATH += "${@'python3-native' if > d.getVar('IMAGE_FSTYPES').find('bmap') else ''}" +1 Would ...find('.bmap') be a bit more safe? -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH] wic: Generate startup.nsh for EFI cases if none found

2017-09-28 Thread Ed Bartosh
show_bug.cgi?id=10073 > This extends the logic we have today in wic to save the > name of the loader that's being placed and if no startup.nsh is provided > already generate the default kind that grub-efi/systemd-boot.bbclass > generate. > > Cc: Ed Bartosh > Cc: Christo

Re: [OE-core] [PATCH] image_types: Fix bmaptool support for RSS

2017-09-28 Thread Ed Bartosh
> + > +# bmap requires python3 to be in the PATH > +EXTRANATIVEPATH += "${@'python3-native' if > d.getVar('IMAGE_FSTYPES').find('bmap') else ''}" > -- > 1.9.1 > > -- > ___ >

Re: [OE-core] [PATCH 1/2] wic: When using --use-uuid make sure that we update the fstab with PARTUUID

2017-09-28 Thread Ed Bartosh
s option is specific to wic. It specifies partition UUID. It's useful if preconfigured partition UUID is added to kernel command line in bootloader configuration before running wic. In this case .wks file can be generated or modified to set preconfi

Re: [OE-core] [PATCH 3/3] wic: apply --extra-space + --overhead to squashfs

2017-09-13 Thread Ed Bartosh
On Tue, Sep 12, 2017 at 03:23:40PM +0200, Enrico Scholz wrote: > Ed Bartosh writes: > > > I agree. --size is less suitable for your needs than extra space and > > overhead factor. I still don't like the idea of using them to reserve > > non-formatted space. >

Re: [OE-core] [PATCH 3/3] wic: apply --extra-space + --overhead to squashfs

2017-09-12 Thread Ed Bartosh
On Tue, Sep 12, 2017 at 02:18:41PM +0200, Enrico Scholz wrote: > Ed Bartosh writes: > > >> >> >> The --extra-space and --overhead option did not had an effect to > >> >> >> squashfs > >> >> >> partitions. Although squashfs i

Re: [OE-core] [PATCH 3/3] wic: apply --extra-space + --overhead to squashfs

2017-09-12 Thread Ed Bartosh
On Tue, Sep 12, 2017 at 11:44:02AM +0200, Enrico Scholz wrote: > Ed Bartosh writes: > > >> >> The --extra-space and --overhead option did not had an effect to > >> >> squashfs > >> >> partitions. Although squashfs is read-only, it can be use

Re: [OE-core] [PATCH 3/3] wic: apply --extra-space + --overhead to squashfs

2017-09-12 Thread Ed Bartosh
On Mon, Sep 11, 2017 at 04:04:40PM +0200, Enrico Scholz wrote: > Ed Bartosh writes: > > >> The --extra-space and --overhead option did not had an effect to squashfs > >> partitions. Although squashfs is read-only, it can be useful to allocate > >> more space f

Re: [OE-core] [PATCH 3/3] wic: apply --extra-space + --overhead to squashfs

2017-09-11 Thread Ed Bartosh
ve_sysroot): > """ > @@ -338,6 +349,8 @@ class Partition(): > (rootfs_dir, rootfs, extraopts) > exec_native_cmd(squashfs_cmd, native_sysroot, pseudo=pseudo) > > +

[OE-core] [PATCH v2 2/3] bmap-tools: switch to Python 3

2017-09-06 Thread Ed Bartosh
bmap-tools is the only recipe in oe-core that still uses Python 2. Switching it to Python 3 should help to get rid of building native Python 2 and its dependencies. [YOCTO #11891] Signed-off-by: Ed Bartosh --- meta/recipes-support/bmap-tools/bmap-tools_3.4.bb | 7 ++- 1 file changed, 2

[OE-core] [PATCH v2 3/3] wic: run bmaptool with native Python3

2017-09-06 Thread Ed Bartosh
Modified wic code to run bmaptool using native Python3 from wic-tools native sysroot. [YOCTO #11891] Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/plugins/imager/direct.py b

[OE-core] [PATCH v2 1/3] bmap-tools: upgrade to v3.4

2017-09-06 Thread Ed Bartosh
Upgraded to the latest upstream release. Signed-off-by: Ed Bartosh --- .../bmap-tools/{bmap-tools_3.2.bb => bmap-tools_3.4.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-support/bmap-tools/{bmap-tools_3.2.bb => bmap-tools_3.4.bb} (84%)

[OE-core] [PATCH v2 0/3] #11891 - Port bmaptools to Python 3

2017-09-06 Thread Ed Bartosh
commit messages (thanks to Patchwork) The following changes since commit 091b759dcec3068eb0b6bffdc5763fd6cc84d0a9: wic: selftest: add test_wic_rm_ext test case (2017-09-06 13:02:02 +0300) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wip http

[OE-core] [PATCH 3/3] wic: run bmaptool with native Python3

2017-09-06 Thread Ed Bartosh
Modified wic code to run bmaptool using native Python3 from wic-tools native sysroot. [YOCTO: #11891] Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/plugins/imager/direct.py b

[OE-core] [PATCH 2/3] bmap-tools: switch to Python 3

2017-09-06 Thread Ed Bartosh
bmap-tools is the only recipe in oe-core that still uses Python 2. Switching it to Python 3 should help to get rid of building native Python 2 and its dependencies. [YOCTO: #11891] Signed-off-by: Ed Bartosh --- meta/recipes-support/bmap-tools/bmap-tools_3.4.bb | 7 ++- 1 file changed, 2

[OE-core] [PATCH 1/3] bmap-tools: upgrade to v3.4

2017-09-06 Thread Ed Bartosh
Upgraded to the latest upstream release. Signed-off-by: Ed Bartosh --- .../bmap-tools/{bmap-tools_3.2.bb => bmap-tools_3.4.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-support/bmap-tools/{bmap-tools_3.2.bb => bmap-tools_3.4.bb} (85%)

[OE-core] [PATCH 0/3] #11891 - Port bmaptools to Python 3

2017-09-06 Thread Ed Bartosh
test_wic_rm_ext test case (2017-09-05 14:28:41 +0300) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wip http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wip Ed Bartosh (3): bmap-tools: upgrade to v3.4 bmap-tools: switch to Python 3 wic: run

[OE-core] [PATCH 4/7] wic: update help content

2017-09-05 Thread Ed Bartosh
Added ext* partitions to the description of 'wic ls', 'wic cp' and 'wic rm' commands. Signed-off-by: Ed Bartosh --- scripts/lib/wic/help.py | 64 - 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/scr

[OE-core] [PATCH 2/7] wic: implement ext fs support for 'wic cp'

2017-09-05 Thread Ed Bartosh
Implemented copying files to the ext partition using debugfs tool. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index c6a63f2080a..9ebd93ae278

[OE-core] [PATCH 6/7] wic: selftest: add test_wic_cp_ext test case

2017-09-05 Thread Ed Bartosh
Tested if 'wic cp' correctly copies files to the ext4 partition of the wic image. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 30 ++ 1 file changed, 30 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeq

[OE-core] [PATCH 7/7] wic: selftest: add test_wic_rm_ext test case

2017-09-05 Thread Ed Bartosh
Tested if 'wic rm' correctly removes files from the ext4 partition of the wic image. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 23 +++ 1 file changed, 23 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/self

[OE-core] [PATCH 1/7] wic: implement ext fs support for 'wic ls'

2017-09-05 Thread Ed Bartosh
Implemented listing directory contents for ext file system using debugfs tool. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index eafc6c783ec

[OE-core] [PATCH 3/7] wic: implement ext fs support for 'wic rm'

2017-09-05 Thread Ed Bartosh
Implemented removing files or directories from the ext partition using debugfs tool. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py

[OE-core] [PATCH 5/7] wic: selftest: add test_wic_ls_ext test case

2017-09-05 Thread Ed Bartosh
Tested if 'wic ls' correctly lists directory contents of the ext* partition. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 16 1 file changed, 16 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wi

[OE-core] [PATCH 0/7] implement wic ls/cp/rm for ext partitions

2017-09-05 Thread Ed Bartosh
) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wip http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wip Ed Bartosh (7): wic: implement ext fs support for 'wic ls' wic: implement ext fs support for 'wic cp' wic: implemen

Re: [OE-core] Running wic on target?

2017-08-31 Thread Ed Bartosh
create a bit of overlap in functionality but it worth it from my point of view. -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [PATCH v2 7/8] wic: always read image partitions

2017-08-25 Thread Ed Bartosh
Got rid of lazy evaluation of self.partitions property. It's not needed because partitions of the source image should be always read. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/engine

[OE-core] [PATCH v2 8/8] wic: setlftest: test expanding MBR image

2017-08-25 Thread Ed Bartosh
ff-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 53 + 1 file changed, 53 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index aaefd4f..aa73ba4 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py

[OE-core] [PATCH v2 6/8] wic: implement 'wic write' command

2017-08-25 Thread Ed Bartosh
This command writes image to the media or another file with the possibility to expand partitions to fill free target space. [YOCTO #11278] Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 146 ++ scripts/lib/wic/help.py | 40

[OE-core] [PATCH v2 5/8] wic: extend list of used tools

2017-08-25 Thread Ed Bartosh
Added sfdisk, e2fsck, mkswap, resize2fs, mkdosfs to the list of used tools in Disk class. They're going to be used in 'wic write' implementation. Added dependency to util-linux to wic-tools to ensure that sfdisk and mkswap are available from wic-tools native sysroot. Signed-off

[OE-core] [PATCH v2 4/8] wic: added 'fstypes' parameter to Disk.__init__

2017-08-25 Thread Ed Bartosh
This parameter specifies list of supported filesystems. So far only 'fat' is supported, but 'wic write' is going to support at least 'fat', 'ext' and 'swap'. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 9 +++-- 1 file chan

[OE-core] [PATCH v2 3/8] wic: convert partition number to int

2017-08-25 Thread Ed Bartosh
Converted partition number to int in order to use it as an index in the list of partitions. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index a965b8b

[OE-core] [PATCH v2 2/8] wic: get more info from the 'parted print' output

2017-08-25 Thread Ed Bartosh
Got partition type and sector sizes from the output of 'parted print'. This info may be used in the implementation of 'wic write' command. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --g

[OE-core] [PATCH v2 0/8] #11278 - wic: create an option to use entire disk

2017-08-25 Thread Ed Bartosh
ed typo in commit message The following changes since commit a087e0bc765ade6386720f22d842e2fc0bd5f128: maintainers.inc: assign newly added recipes (2017-08-24 16:49:57 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wip http://git.yoctoproject.org

[OE-core] [PATCH v2 1/8] wic: reimplement getting paths of used tools

2017-08-25 Thread Ed Bartosh
So far every used tool have to have separate property and private attribute in the Disk class. This is too verbose, considering that there will be much more tools used. Reimplemented getting tools paths using custom __getattr__ method. This is much more compact and readable. Signed-off-by: Ed

[OE-core] [PATCH 10/10] wic: setlftest: test expanding MBR image

2017-08-25 Thread Ed Bartosh
ff-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 53 + 1 file changed, 53 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index aaefd4f..aa73ba4 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py

[OE-core] [PATCH 08/10] wic: implement 'wic write' command

2017-08-25 Thread Ed Bartosh
This command writes image to the media or another file with the possibility to expand partitions to fill free target space. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 142 +- 1 file changed, 141 insertions(+), 1 deletion(-) diff --git

[OE-core] [PATCH 07/10] wic: extend list of used tools

2017-08-25 Thread Ed Bartosh
Added sfdisk, e2fsck, mkswap, resize2fs, mkdosfs to the list of used tools in Disk class. They're going to be used in 'wic write' implementation. Added dependency to util-linux to wic-tools to ensure that sfdisk and mkswap are available from wic-tools native sysroot. Signed-off

[OE-core] [PATCH 09/10] wic: always read image partitions

2017-08-25 Thread Ed Bartosh
Got rid of lazy evaluation of self.partitions property. It's not needed because partitions of the source image should be always read. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/engine

[OE-core] [PATCH 05/10] wic: convert partition number to int

2017-08-25 Thread Ed Bartosh
Converted partition number to int in order to use it as an index in the list of partitions. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index b8fd3ae

[OE-core] [PATCH 03/10] wic: reimplement getting paths of used tools

2017-08-25 Thread Ed Bartosh
So far every used tool have to have separate property and private attribute in the Disk class. This is too verbose, considering that there will be much more tools used. Reimplemented getting tools paths using custom __getattr__ method. This is much more compact and readable. Signed-off-by: Ed

[OE-core] [PATCH 01/10] wic: add help and usage content for 'wic write'

2017-08-25 Thread Ed Bartosh
Added wic_write_help and wic_write_usage variables to the help.py module. These variables contain help content that will be used in 'wic write help' and 'wic write --help' output. [YOCTO #11278] Signed-off-by: Ed Bartosh --- scripts/

[OE-core] [PATCH 02/10] wic: add 'wic write' command

2017-08-25 Thread Ed Bartosh
Added empty 'wic write' command that does nothing. The functionality will be added by the next commits. [YOCTO #11278] Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 6 ++ scripts/wic | 55 +++ 2 files c

[OE-core] [PATCH 06/10] wic: added 'fstypes' parameter to Disk.__init__

2017-08-25 Thread Ed Bartosh
This parameter specifies list of supported filesystems. So far only 'fat' is supported, but 'wic write' is going to support at least 'fat', 'ext' and 'swap'. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 9 +++-- 1 file chan

[OE-core] [PATCH 04/10] wic: get more info from the 'parted print' output

2017-08-25 Thread Ed Bartosh
Got partition type and sector sizes from the output of 'parted print'. This info may be used in the implementation of 'wic write' command. Signed-off-by: Ed Bartosh --- scripts/lib/wic/engine.py | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --g

[OE-core] [PATCH 00/10] #11278 - wic: create an option to use entire disk

2017-08-25 Thread Ed Bartosh
fc0bd5f128: maintainers.inc: assign newly added recipes (2017-08-24 16:49:57 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wip http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wip Ed Bartosh (10): wic: add help and usage content f

Re: [OE-core] [PATCH 1/4] wic-image-minimal: drop WKS_FILE_DEPENDS definition

2017-08-02 Thread Ed Bartosh
native dosfstools-native mtools-native > gptfdisk-native" > - > LIC_FILES_CHKSUM = > "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" > > IMAGE_ROOTFS_EXTRA_SPACE = "2000"

Re: [OE-core] [PATCH 3/4] qemux86.conf: drop do_image_wic task dependencies

2017-08-02 Thread Ed Bartosh
ctdisk.wks. This will faster the build as unneeded packages will not be built. You may want to look at "image_types_wic: set default WKS_FILE_DEPENDS" commit for further details. -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH 2/4] image_types_wic.bbclass: deal with dependencies only with WKS_FILE_DEPENDS_DEFAULT

2017-08-02 Thread Ed Bartosh
ls-native > btrfs-tools-native squashfs-tools-native e2fsprogs-native" > WKS_FILE_DEPENDS_BOOTLOADERS = "" > WKS_FILE_DEPENDS_BOOTLOADERS_x86 = "syslinux grub-efi systemd-boot" > WKS_FILE_DEPENDS_BOOTLOADERS_x86-64 = "syslinux grub-efi systemd-boot" This breakes wic build on qemux86-64 target on my machine with the error: "ERROR: A native program parted required to build the image was not found (see details above)." -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH v3] wic: ensure generated disk system identifier is non-zero

2017-07-31 Thread Ed Bartosh
On Mon, Jul 31, 2017 at 06:04:47PM +1000, Jonathan Liu wrote: > > > > How about random.SystemRandom().randrange(1, 0x) ? > > > > random.SystemRandom().randint(1, 0x) actually > This looks ok to

Re: [OE-core] [PATCH v3] wic: ensure generated disk system identifier is non-zero

2017-07-31 Thread Ed Bartosh
On Sun, Jul 30, 2017 at 08:37:26PM +1000, Jonathan Liu wrote: > Hi Ed, > > On 30 July 2017 at 20:02, Ed Bartosh wrote: > > On Sat, Jul 29, 2017 at 12:45:27AM +1000, Jonathan Liu wrote: > >> Zero may be interpreted as no MBR signature present and another > >> par

[OE-core] [PATCH] x86-base.inc: enable live image type

2017-07-30 Thread Ed Bartosh
is built), but it makes NOHDD and NOISO working as expected. [YOCTO #11842] Signed-off-by: Ed Bartosh --- meta/conf/machine/include/x86-base.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/conf/machine/include/x86-base.inc b/meta/conf/machine/include/x86-base.i

Re: [OE-core] [PATCH v3] wic: ensure generated disk system identifier is non-zero

2017-07-30 Thread Ed Bartosh
___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- -- Regards, Ed -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH] image: Convert vmdk/vdi/qcow2 to strict CONVERSION_CMD types

2017-07-28 Thread Ed Bartosh
_CMD_lzma = "lzma -k -f -7 > >> > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" > >> > CONVERSION_CMD_gz = "gzip -f -9 -c > >> > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > > >>

[OE-core] [PATCH v5 4/7] wic: rootfs: fix rootfs path reporting

2017-07-28 Thread Ed Bartosh
_dir. This should fix the report. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index c08f760..e438158 100644 ---

[OE-core] [PATCH v5 3/7] wic: use absolute paths in rootfs plugin

2017-07-28 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 v5 7/7] oe-selftest: wic: fix test_quemu

2017-07-28 Thread Ed Bartosh
This test case boots the image in qemu and checks for mounted partitions. As /boot is mounted automatically the test case fails. Fixed this by adding /boot to the list of mounted partitions. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion

[OE-core] [PATCH v5 5/7] wic: rootfs: make copied rootfs unique

2017-07-28 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 v5 6/7] wic: add /boot mount point to fstab by default

2017-07-28 Thread Ed Bartosh
wic avoided adding /boot to fstab for no reason. This exception was hardcoded in the wic code. There is no need for this as mountpoint in .wks file is an optional field. It can be used only if user wants to have partitions automatically mounted on system boot. [YOCTO #11662] Signed-off-by: Ed

[OE-core] [PATCH v5 2/7] wic: copy rootfs directory before changing fstab

2017-07-28 Thread Ed Bartosh
temporary location before updating fstab to avoid conflicts with other tasks working with the same rootfs directory. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/scripts/lib/wic

[OE-core] [PATCH v5 1/7] image_types.bbclass: ignore tar exit code 1

2017-07-28 Thread Ed Bartosh
to change it, e.g. do_image_wic does this to update etc/fstab. Ignored tar exit code 1 to be able to hardlink rootfs content while do_rootfs_tar is tarring it. Signed-off-by: Ed Bartosh --- meta/classes/image_types.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/me

[OE-core] [PATCH v5 0/7] #11662 - wic should mount /boot

2017-07-28 Thread Ed Bartosh
anged ctime Changes in v5: back to hardlinking. ignored tar exit code 1. The following changes since commit b73f5e088a543775a2a94b60302f750edfffbd10: wic-tools: add dependency to e2fsprogs-native (2017-07-27 16:07:26 +0300) are available in the git repository at: git://git.yoctoproject.org/p

Re: [OE-core] [PATCHv2 1/5] image: Convert vmdk/vdi/qcow2 to strict CONVERSION_CMD types

2017-07-27 Thread Ed Bartosh
the CONVERSION_CMD framework. The equivalent of vmdk is now wic.vmdk > and so forth for the other types. > > Signed-off-by: Tom Rini Acked-by: Ed Bartosh > --- > Changes in v2: > - Update runqemu help (code matches .wic.vmdk as vmdk, does right thing, > tested). >

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

2017-07-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 v4 6/6] oe-selftest: wic: fix test_quemu

2017-07-27 Thread Ed Bartosh
This test case boots the image in qemu and checks for mounted partitions. As /boot is mounted automatically the test case fails. Fixed this by adding /boot to the list of mounted partitions. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion

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

2017-07-27 Thread Ed Bartosh
wic avoided adding /boot to fstab for no reason. This exception was hardcoded in the wic code. There is no need for this as mountpoint in .wks file is an optional field. It can be used only if user wants to have partitions automatically mounted on system boot. [YOCTO #11662] Signed-off-by: Ed

[OE-core] [PATCH v4 3/6] wic: rootfs: fix rootfs path reporting

2017-07-27 Thread Ed Bartosh
_dir. This should fix the report. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/source/rootfs.py | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index c08f760..e438158 100644 ---

[OE-core] [PATCH v4 4/6] wic: rootfs: make copied rootfs unique

2017-07-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 v4 1/6] wic: copy rootfs directory before changing fstab

2017-07-27 Thread Ed Bartosh
location before updating fstab to avoid conflicts with other tasks working with the same rootfs directory. 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

[OE-core] [PATCH v4 0/6] #11662 - wic should mount /boot

2017-07-27 Thread Ed Bartosh
302f750edfffbd10: wic-tools: add dependency to e2fsprogs-native (2017-07-27 16:07:26 +0300) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/wip http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wip Ed Bartosh (6): wic: copy rootfs directo

[OE-core] [PATCH] wic-tools: add dependency to e2fsprogs-native

2017-07-27 Thread Ed Bartosh
Added e2fsprogs-native to the list of dependencies for wic-tools as all fs-related utilities have to be in this list. Signed-off-by: Ed Bartosh --- meta/recipes-core/meta/wic-tools.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/meta/wic-tools.bb b/meta

[OE-core] [PATCH v2] oe-selftest: wic: change mkfs.btrfs options

2017-07-26 Thread Ed Bartosh
is OK. Changed extra options for mkfs.btrfs to '--quiet' to fix the failure. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.p

[OE-core] [PATCH] image_types_wic: add dependency to e2fsprogs-native

2017-07-26 Thread Ed Bartosh
Added e2fsprogs-native to the list of default dependencies for wic (WKS_FILE_DEPENDS_DEFAULT) as all fs-related utilities have to be in this list. Thanks to Patrick Ohly for noticing this. [YOCTO #11817] Signed-off-by: Ed Bartosh --- meta/classes/image_types_wic.bbclass | 2 +- 1 file changed

Re: [OE-core] [PATCH] wic: Switch to using --use-uuid by default

2017-07-26 Thread Ed Bartosh
On Wed, Jul 26, 2017 at 10:29:09AM +0300, Ed Bartosh wrote: > On Tue, Jul 25, 2017 at 03:58:22PM -0400, Tom Rini wrote: > > The most portable way to specifiy a root device in a disk image that we > > create is to use PARTUUID rather than /dev/sda2. As background, both > &g

[OE-core] [PATCH] oe-selftest: wic: change mkfs.btrfs options

2017-07-26 Thread Ed Bartosh
is OK. Changed extra options for mkfs.btrfs to '--quiet' to fix the failure. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.p

Re: [OE-core] [PATCH] wic: Switch to using --use-uuid by default

2017-07-26 Thread Ed Bartosh
ual disk controller. > I suspect oe-selftest needs to be adjusted for this change. Please run "oe-selftest -r wic" to ensure all tests pass. > Cc: Ed Bartosh > Cc: Matt Porter > Signed-off-by: Tom Rini > --- > scripts/lib/wic/canned-wks/common.wks.inc

Re: [OE-core] [PATCH] image: Convert vmdk/vdi/qcow2 to strict CONVERSION_CMD types

2017-07-26 Thread Ed Bartosh
underlying disk > content has changed at least slightly from the old vmdk type to the new > type and that we can simply handle this change in documentation. As > such, if there's agreement about dropping the types I'll include some > documentation changes in the next version

Re: [OE-core] [PATCH 1/2] image.bbclass: Correct chaining compression support

2017-07-26 Thread Ed Bartosh
> > Fixes: 46bc438374de ("image.bbclass: do exact match for rootfs type") > Cc: Zhenhua Luo > Cc: Richard Purdie > Cc: Patrick Ohly > Signed-off-by: Tom Rini Acked-by: Ed Bartosh Any chance to have this functionality covered by oe-selftest? That would help

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

2017-07-25 Thread Ed Bartosh
wic avoided adding /boot to fstab for no reason. This exception was hardcoded in the wic code. There is no need for this as mountpoint in .wks file is an optional field. It can be used only if user wants to have partitions automatically mounted on system boot. [YOCTO #11662] Signed-off-by: Ed

[OE-core] [PATCH v3 6/6] oe-selftest: wic: fix test_quemu

2017-07-25 Thread Ed Bartosh
This test case boots the image in qemu and checks for mounted partitions. As /boot is mounted automatically the test case fails. Fixed this by adding /boot to the list of mounted partitions. Signed-off-by: Ed Bartosh --- meta/lib/oeqa/selftest/cases/wic.py | 2 +- 1 file changed, 1 insertion

[OE-core] [PATCH v3 4/6] wic: rootfs: make copied rootfs unique

2017-07-25 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

  1   2   3   4   5   6   7   8   9   10   >