[OE-core] [PATCH] send-error-report: encode data to bytes

2016-06-03 Thread Ed Bartosh
Encoded data before sending it through http as urllib expecting bytes. Fixed TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str. Signed-off-by: Ed Bartosh --- scripts/send-error-report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[OE-core] [PATCH] oe-pkgdata-util: fix AttributeError

2016-06-07 Thread Ed Bartosh
False, usage message is not printed and code continues to be executed. oe-pkgdata-util code raises AttributeError exception in this case: AttributeError: 'Namespace' object has no attribute 'func' Fixed this by setting subparser.required to True. [YOCTO #9711] Signed-of

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

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

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

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

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

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

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

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

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

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

[OE-core] [PATCH] buildhistory-diff: suggest correct version of PythonGit

2016-06-10 Thread Ed Bartosh
om 0.3.4. [YOCTO #9741] Signed-off-by: Ed Bartosh --- scripts/buildhistory-diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff index dc8b8f2..d8ca12d 100755 --- a/scripts/buildhistory-diff +++ b/scripts/buildhistory-diff @@ -14

[OE-core] [PATCH] pseudo: remove rpath from libpseudo.so

2016-06-17 Thread Ed Bartosh
libc. [YOCTO #9761] Signed-off-by: Ed Bartosh --- meta/recipes-devtools/pseudo/pseudo.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc index 0de7b36..59a44f1 100644 --- a/meta/recipes-devtools/pseudo

[OE-core] [PATCH v2] pseudo: remove rpath from libpseudo.so

2016-06-17 Thread Ed Bartosh
libc. [YOCTO #9761] Signed-off-by: Ed Bartosh --- meta/recipes-devtools/pseudo/pseudo.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc index 0de7b36..16c57c9 100644 --- a/meta/recipes-devtools/pseudo

[OE-core] [wic][PATCH] wic: do not strip traceback

2015-05-27 Thread Ed Bartosh
Printing only first 5 levels of wic traceback makes it almost useless as the most valuable part of it is stripped. Signed-off-by: Ed Bartosh --- scripts/wic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wic b/scripts/wic index 1e07dfe..90b36c6 100755 --- a/scripts

[OE-core] [wic][PATCH] wic: refactored processing of wic exceptions

2015-05-27 Thread Ed Bartosh
standard python traceback. Signed-off-by: Ed Bartosh --- scripts/lib/wic/utils/errors.py | 34 -- scripts/wic | 11 +-- 2 files changed, 13 insertions(+), 32 deletions(-) diff --git a/scripts/lib/wic/utils/errors.py b/scripts/lib/wic/utils

[OE-core] [wic][PATCH 2/7] wic: check if part_type is set only for msdos partition table

2015-06-02 Thread Ed Bartosh
Specifying partition type(GUID) makes sense for gpt partition table. Current code checks if part-type is specified and throws exception if it is. This makes sense to do only for msdos partition table. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib

[OE-core] [wic][PATCH 0/7] wic: Fixed support of GPT partition table

2015-06-02 Thread Ed Bartosh
Hi, This is a set of fixes for GPT partition table support in wic. Added new canned .wks and correspondent testcase were added to the codebase. Result direct-gpt core-minimal image was successfully booted on NUC. Ed Bartosh (7): wic: set legacy_boot flag for gpt partitions wic: check if

[OE-core] [wic][PATCH 3/7] wic: Add gpt to the list of supported partition table formats

2015-06-02 Thread Ed Bartosh
Only msdos partition table format was supported by wic source plugins. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 2fc0357..22c7b0a 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b

[OE-core] [wic][PATCH 4/7] wic: Use gptmbr.bin MBR for gpt partitions

2015-06-02 Thread Ed Bartosh
Used proper syslinux MBR gptmbr.bin for GPT partitons. Added check for unsupported partition formats. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index c28b9af..ab62b7a 100644 --- a/scripts/lib/wic

[OE-core] [wic][PATCH 6/7] wic: create directdisk-gpt.wks

2015-06-02 Thread Ed Bartosh
directdisk-gpt is the same as directdisk with only one difference: it uses GPT partition table. Signed-off-by: Ed Bartosh create mode 100644 scripts/lib/image/canned-wks/directdisk-gpt.wks diff --git a/scripts/lib/image/canned-wks/directdisk-gpt.wks b/scripts/lib/image/canned-wks/directdisk

[OE-core] [wic][PATCH 5/7] wic: Make _ptable_format public

2015-06-02 Thread Ed Bartosh
Names with one leasding underscore considered protected in Python. _ptable_format is accessed outside of its class. Made it public by removing underscore. This pylint warning should be fixed now: Access to a protected member _ptable_format of a client class Signed-off-by: Ed Bartosh diff --git

[OE-core] [wic][PATCH 1/7] wic: set legacy_boot flag for gpt partitions

2015-06-02 Thread Ed Bartosh
This flag is used to tell special purpose software that the GPT partition may be bootable. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 1c9e3ea..06d4eac 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b

[OE-core] [wic][PATCH 7/7] wic: Test creation of directdisk image with GPT table

2015-06-02 Thread Ed Bartosh
Added new wic testcase to the sute - creation of directdisk-gpt image. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index a2ce2cb..e97dd1d 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py @@ -73,3 +73,9

[OE-core] [wic][PATCH 3/4] wic: replaced __run_parted with exec_native_cmd

2015-06-05 Thread Ed Bartosh
There is no need for yet another wrapper around exec_native_cmd. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 8fd44a6..dcb63e5 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils

[OE-core] [wic][PATCH 1/4] wic: removed exec_cmd_quiet and exec_native_cmd_quiet

2015-06-05 Thread Ed Bartosh
These functions are not used anywhere. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index 2f5299d..9eaf039 100644 --- a/scripts/lib/wic/utils/oe/misc.py +++ b/scripts/lib/wic/utils/oe/misc.py @@ -63,15 +63,6 @@ def exec_cmd

[OE-core] [wic][PATCH 4/4] wic: pylinted partitionedfs.py

2015-06-05 Thread Ed Bartosh
Fixed some pylint findings in partitionedfs.py Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index dcb63e5..902548f 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -31,7

[OE-core] [wic][PATCH 0/4] Code cleanup and refactoring

2015-06-05 Thread Ed Bartosh
Hi, This patchset includes cleanup and refactoring patches made during implementation of partition UUID support. Without this work I'd end up in duplicating a lot of code, so I decided to clean it up a bit. Please, review. Ed Bartosh (4): wic: removed exec_cmd_quiet and exec_native_cmd_

[OE-core] [wic][PATCH 2/4] wic: move checks to exec_native_cmd

2015-06-05 Thread Ed Bartosh
Checked for return code and output of native commands inside exec_native_cmd. Removed similar code from a lot of places where exec_native_cmd is called. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands

[OE-core] [wic][PATCH 1/9] wic: Add --use-uuid partition option

2015-06-05 Thread Ed Bartosh
Added --use-uuid option to the configuration of wks parser. Processing of this option will be implemented in the following commits. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index

[OE-core] [wic][PATCH 0/9] UUID support

2015-06-05 Thread Ed Bartosh
ssues caused by using device names in kernel commandline as GUID doesn't change unlike device names. Ed Bartosh (9): wic: Add --use-uuid partition option wic: Generate random uuid for partition wic: Fix format string wic: Refactored getting root device name wic: Add parameter

[OE-core] [wic][PATCH 2/9] wic: generate random uuid for partition

2015-06-05 Thread Ed Bartosh
'uuid' attribute of partition object is set to generated uuid when --use-uuid option is used for partition in .wks file. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 7d0473

[OE-core] [wic][PATCH 3/9] wic: fixed format string

2015-06-05 Thread Ed Bartosh
wic crashes with "TypeError: %d format: a number is required, not str" Due to incorrect format used for Wic_PartData.extra_size attribute. Using %s instead of %d should fix the crash. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/s

[OE-core] [wic][PATCH 3/9] wic: Fix format string

2015-06-05 Thread Ed Bartosh
wic crashes with "TypeError: %d format: a number is required, not str" Due to incorrect format used for Wic_PartData.extra_size attribute. Using %s instead of %d should fix the crash. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/s

[OE-core] [wic][PATCH 2/9] wic: Generate random uuid for partition

2015-06-05 Thread Ed Bartosh
'uuid' attribute of partition object is set to generated uuid when --use-uuid option is used for partition in .wks file. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 7d0473

[OE-core] [wic][PATCH 4/9] wic: refactored getting root device name

2015-06-05 Thread Ed Bartosh
Replaced DirectImageCreator._get_boot_config private method with a 'rootdev' property. Simplified the code and API. Used 'uuid' property instead of incorrectly used 'part_type'. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/

[OE-core] [wic][PATCH 9/9] wic: Add help for --part-type and --use-uuid options

2015-06-05 Thread Ed Bartosh
Added help for two wks partition options specific to GUID partition table and globally unique identificators (GUID). Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index e365a07..14f0ff1 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image

[OE-core] [wic][PATCH 4/9] wic: Refactored getting root device name

2015-06-05 Thread Ed Bartosh
Replaced DirectImageCreator._get_boot_config private method with a 'rootdev' property. Simplified the code and API. Used 'uuid' property instead of incorrectly used 'part_type'. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/

[OE-core] [wic][PATCH 6/9] wic: Set type GUID and UUID for partition

2015-06-05 Thread Ed Bartosh
Set type GUID and UUID for partition using sgdisk utility. Type GUID can be specified for partition in .wks with --part-type option. UUID is generated when --use-uuid option is specified for partition. [YOCTO #7716] Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils

[OE-core] [wic][PATCH 5/9] wic: Add parameter 'uuid' to Image.add_partition method

2015-06-05 Thread Ed Bartosh
With this parameter it's possible to pass generated UUID into Image class to set it for partition when it's created. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 36150c9..2290ecd 100644 --- a/scripts/lib/wic/imager

[OE-core] [wic][PATCH 5/9] wic: add parameter 'uuid' to Image.add_partition method

2015-06-05 Thread Ed Bartosh
With this parameter it's possible to pass generated UUID into Image class to set it for partition when it's created. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 36150c9..2290ecd 100644 --- a/scripts/lib/wic/imager

[OE-core] [wic][PATCH 8/9] wic: oe-selftest: Configure testing of gpt/UUID image

2015-06-05 Thread Ed Bartosh
Added runtime dependency to gptfdisk-native to wic test suite to be able to test modified directdisk-gpt with UUID support. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index e97dd1d..358f09e 100644 --- a/meta/lib/oeqa/selftest/wic.py

[OE-core] [wic][PATCH v2 4/9] wic: Refactored getting root device name

2015-06-05 Thread Ed Bartosh
Replaced DirectImageCreator._get_boot_config private method with a 'rootdev' property. Simplified the code and API. Used 'uuid' property instead of incorrectly used 'part_type'. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/

[OE-core] [wic][PATCH v2 3/9] wic: Fix format string

2015-06-05 Thread Ed Bartosh
wic crashes with "TypeError: %d format: a number is required, not str" Due to incorrect format used for Wic_PartData.extra_size attribute. Using %s instead of %d should fix the crash. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/s

[OE-core] [wic][PATCH v2 0/9] UUID support

2015-06-05 Thread Ed Bartosh
ssues caused by using device names in kernel commandline as GUID doesn't change unlike device names. Ed Bartosh (9): wic: Add --use-uuid partition option wic: Generate random uuid for partition wic: Fix format string wic: Refactored getting root device name wic: Add parameter

[OE-core] [wic][PATCH 7/9] wic: Use partition UUID in directdisk-gpt

2015-06-05 Thread Ed Bartosh
Used --use-uuid option for root partition in directdisk-gpt.wks This is useful to have example of image with UUID support. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/canned-wks/directdisk-gpt.wks b/scripts/lib/image/canned-wks/directdisk-gpt.wks index 76fda1f..2355259 100644

[OE-core] [wic][PATCH v2 1/9] wic: Add --use-uuid partition option

2015-06-05 Thread Ed Bartosh
Added --use-uuid option to the configuration of wks parser. Processing of this option will be implemented in the following commits. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index

[OE-core] [wic][PATCH 8/9] wic: testing: configured testing of gpt/UUID image

2015-06-05 Thread Ed Bartosh
Added runtime dependency to gptfdisk-native to wic test suite to be able to test modified directdisk-gpt with UUID support. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index e97dd1d..358f09e 100644 --- a/meta/lib/oeqa/selftest/wic.py

[OE-core] [wic][PATCH v2 5/9] wic: Add parameter 'uuid' to Image.add_partition method

2015-06-05 Thread Ed Bartosh
With this parameter it's possible to pass generated UUID into Image class to set it for partition when it's created. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 36150c9..2290ecd 100644 --- a/scripts/lib/wic/imager

[OE-core] [wic][PATCH 6/9] wic: set type GUID and UUID for partition

2015-06-05 Thread Ed Bartosh
Set type GUID and UUID for partition using sgdisk utility. Type GUID can be specified for partition in .wks with --part-type option. UUID is generated when --use-uuid option is specified for partition. [YOCTO #7716] Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils

[OE-core] [wic][PATCH v2 2/9] wic: Generate random uuid for partition

2015-06-05 Thread Ed Bartosh
'uuid' attribute of partition object is set to generated uuid when --use-uuid option is used for partition in .wks file. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 7d0473

[OE-core] [wic][PATCH v2 7/9] wic: Use partition UUID in directdisk-gpt

2015-06-05 Thread Ed Bartosh
Used --use-uuid option for root partition in directdisk-gpt.wks This is useful to have example of image with UUID support. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/canned-wks/directdisk-gpt.wks b/scripts/lib/image/canned-wks/directdisk-gpt.wks index 76fda1f..2355259 100644

[OE-core] [wic][PATCH v2 6/9] wic: Set type GUID and UUID for partition

2015-06-05 Thread Ed Bartosh
Set type GUID and UUID for partition using sgdisk utility. Type GUID can be specified for partition in .wks with --part-type option. UUID is generated when --use-uuid option is specified for partition. [YOCTO #7716] Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/utils

[OE-core] [wic][PATCH v2 8/9] wic: oe-selftest: Configure testing of gpt/UUID image

2015-06-05 Thread Ed Bartosh
Added runtime dependency to gptfdisk-native to wic test suite to be able to test modified directdisk-gpt with UUID support. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index e97dd1d..358f09e 100644 --- a/meta/lib/oeqa/selftest/wic.py

[OE-core] [wic][PATCH v2 9/9] wic: Add help for --part-type and --use-uuid options

2015-06-05 Thread Ed Bartosh
Added help for two wks partition options specific to GUID partition table and globally unique identificators (GUID). Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index e365a07..14f0ff1 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image

[OE-core] [wic][PATCH] wic: Move validation of --ptable option to wks parser

2015-06-05 Thread Ed Bartosh
bootloader --ptable option has two valid choices: gpt and msdos Moved this check to wks parser by changing option type to 'choice'. Removed similar checks from 5 other places. Signed-off-by: Ed Bartosh --- scripts/lib/wic/kickstart/custom_commands/micboot.py | 3 ++- scripts/lib/w

Re: [OE-core] [wic][PATCH 3/4] wic: replaced __run_parted with exec_native_cmd

2015-06-08 Thread Ed Bartosh
On Fri, Jun 05, 2015 at 05:33:12PM +0100, Ross Burton wrote: > On 05/06/2015 07:13, Ed Bartosh wrote: > > There is no need for yet another wrapper around exec_native_cmd. > > This doesn't appear to apply to master, can you rebase? > > (or does it depend on your other se

[OE-core] [PATCH] image-live: Set syslinux timeout to 5s

2015-06-10 Thread Ed Bartosh
Increased syslinux timeout to 5s as 1s default 1s timeout is not enough to notice syslinux prompt on some devices. Signed-off-by: Ed Bartosh --- meta/classes/image-live.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/image-live.bbclass b/meta/classes

[OE-core] [PATCH] initramfs-live-install: Add gptdisk to initramfs

2015-06-10 Thread Ed Bartosh
This is a part of the work to support partiion UUID in installer. gptdisk is going to be used to get partition UUID. Signed-off-by: Ed Bartosh --- meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb | 2 +- meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb | 2

[OE-core] [PATCH] init-install-efi: Implement UUID support

2015-06-10 Thread Ed Bartosh
. Used partition UUID in kernel command line to specify root partition. Used partition UUID in /etc/fstab to specify boot and swap partitions. [YOCTO #6101] Signed-off-by: Ed Bartosh --- .../recipes-core/initrdscripts/files/init-install-efi.sh | 16 1 file changed, 12 insertions

[OE-core] [PATCH 01/10] image-live: Set syslinux timeout to 5s

2015-06-15 Thread Ed Bartosh
Increased syslinux timeout to 5s as default 1s timeout is not enough to notice syslinux prompt on some devices. Signed-off-by: Ed Bartosh diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass index 7b770fb..52b6de7 100644 --- a/meta/classes/image-live.bbclass +++ b/meta

[OE-core] [PATCH 05/10] init-install: Use GPT table with GRUB 2

2015-06-15 Thread Ed Bartosh
Changed partition type from 'msdos' to 'gpt'. Added special partition for grub stage2 bootloader. NOTE: This is done only for GRUB 2 as legacy GRUB is rarely used and doesn't support GPT partitions. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts

[OE-core] [PATCH 03/10] busybox: Enable UUID-related options

2015-06-15 Thread Ed Bartosh
Enabled MOUNT_LABEL and VOLUMEID* features for busybox mount to understand 'UUID=' syntax in fstab. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/busybox/busybox/defconfig b/meta/recipes-core/busybox/busybox/defconfig index c200ee0..468c40e 100644 --- a/meta/recipes-co

[OE-core] [PATCH 09/10] init-install: code cleanup: Replace tabs with spaces

2015-06-15 Thread Ed Bartosh
Cleaned up spaces from init-install* shell scripts. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index a6a8679..dca1432 100644 --- a/meta/recipes-core/initrdscripts/files/init

[OE-core] [PATCH 10/10] init-install: code cleanup: replace /dev/$device -> $device

2015-06-15 Thread Ed Bartosh
Shortened code by including /dev/ prefix into variable. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index dca1432..74372b0 100644 --- a/meta/recipes-core/initrdscripts/files/init

[OE-core] [PATCH 07/10] init-install: Specify filesystem type in parted command line

2015-06-15 Thread Ed Bartosh
Explicitly specified filesystem type for parted mkpart command. This makes partition table to look more informative. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index 5fb4d4d

[OE-core] [PATCH 08/10] init-install: Specify partition name in parted command line

2015-06-15 Thread Ed Bartosh
parted allows to use names for partitions if GPT partition table is used on the device. msdos partitioning can have only partition types: 'primary', 'logical' or 'extended'. Used meaningful partition names in parted command line for GPT partitioning. Signed-off-by:

[OE-core] [PATCH 04/10] init-install-efi: Implement UUID support

2015-06-15 Thread Ed Bartosh
. Used partition UUID in kernel command line to specify root partition. Used partition UUID in /etc/fstab to specify swap partition. Used filesystem UUID in /etc/fstab to specify boot partition. [YOCTO #6101] Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install

[OE-core] [PATCH 02/10] initramfs-live-install: Add blkid to initramfs

2015-06-15 Thread Ed Bartosh
Added util-linux-blkid to the list of dependencies of initramfs-live-install and initramfs-live-install-efi. This is a part of the work to support partiion UUID in installer. blkid is going to be used to get partition and filesystem UUIDs. Signed-off-by: Ed Bartosh diff --git a/meta/recipes

[OE-core] [PATCH 06/10] init-install: Implement UUID support

2015-06-15 Thread Ed Bartosh
Used partition UUID in kernel command line to specify root partition. Searched root device by file system uuid in GRUB configuration. Used partition UUID in /etc/fstab to specify swap partition. Used filesystem UUID in /etc/fstab to specify boot partition. [YOCTO #6101] Signed-off-by: Ed Bartosh

[OE-core] [PATCH 00/10] UUID support in installer (poky-contrib: ed/oe-core/uuid-init-install)

2015-06-15 Thread Ed Bartosh
ey're included into the patchset: [OE-core] [PATCH] image-live: Set syslinux timeout to 5s [OE-core] [PATCH] initramfs-live-install: Add gptdisk to initramfs [OE-core] [PATCH] init-install-efi: Implement UUID support Please review Ed Bartosh (10): image-live: Set syslinux tim

[OE-core] [PATCH v2 03/11] busybox: Enable UUID-related options

2015-06-16 Thread Ed Bartosh
Enabled MOUNT_LABEL and VOLUMEID* features for busybox mount to understand 'UUID=' syntax in fstab. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/busybox/busybox/defconfig b/meta/recipes-core/busybox/busybox/defconfig index c200ee0..468c40e 100644 --- a/meta/recipes-co

[OE-core] [PATCH v2 02/11] initramfs-live-install: Add blkid to initramfs

2015-06-16 Thread Ed Bartosh
Added util-linux-blkid to the list of dependencies of initramfs-live-install and initramfs-live-install-efi. This is a part of the work to support partiion UUID in installer. blkid is going to be used to get partition and filesystem UUIDs. Signed-off-by: Ed Bartosh diff --git a/meta/recipes

[OE-core] [PATCH v2 09/11] init-install: code cleanup: Replace tabs with spaces

2015-06-16 Thread Ed Bartosh
Cleaned up spaces from init-install* shell scripts. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index a6a8679..dca1432 100644 --- a/meta/recipes-core/initrdscripts/files/init

[OE-core] [PATCH v2 01/11] image-live: Set syslinux timeout to 5s

2015-06-16 Thread Ed Bartosh
Increased syslinux timeout to 5s as default 1s timeout is not enough to notice syslinux prompt on some devices. Signed-off-by: Ed Bartosh diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass index 7b770fb..52b6de7 100644 --- a/meta/classes/image-live.bbclass +++ b/meta

[OE-core] [PATCH v2 00/11] UUID support in installer (poky-contrib: ed/oe-core/uuid-init-install)

2015-06-16 Thread Ed Bartosh
ey're included into the patchset: [OE-core] [PATCH] image-live: Set syslinux timeout to 5s [OE-core] [PATCH] initramfs-live-install: Add gptdisk to initramfs [OE-core] [PATCH] init-install-efi: Implement UUID support Ed Bartosh (11): image-live: Set syslinux timeout to 5s init

[OE-core] [PATCH v2 05/11] init-install: Use GPT table with GRUB 2

2015-06-16 Thread Ed Bartosh
Changed partition type from 'msdos' to 'gpt'. Added special partition for grub stage2 bootloader. NOTE: This is done only for GRUB 2 as legacy GRUB is rarely used and doesn't support GPT partitions. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts

[OE-core] [PATCH v2 08/11] init-install: Specify partition name in parted command line

2015-06-16 Thread Ed Bartosh
parted allows to use names for partitions if GPT partition table is used on the device. msdos partitioning can have only partition types: 'primary', 'logical' or 'extended'. Used meaningful partition names in parted command line for GPT partitioning. Signed-off-by:

[OE-core] [PATCH v2 10/11] init-install: code cleanup: replace /dev/$device -> $device

2015-06-16 Thread Ed Bartosh
Shortened code by including /dev/ prefix into variable. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index dca1432..74372b0 100644 --- a/meta/recipes-core/initrdscripts/files/init

[OE-core] [PATCH v2 07/11] init-install: Specify filesystem type in parted command line

2015-06-16 Thread Ed Bartosh
Explicitly specified filesystem type for parted mkpart command. This makes partition table to look more informative. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index 5fb4d4d

[OE-core] [PATCH v2 04/11] init-install-efi: Implement UUID support

2015-06-16 Thread Ed Bartosh
. Used partition UUID in kernel command line to specify root partition. Used partition UUID in /etc/fstab to specify swap partition. Used filesystem UUID in /etc/fstab to specify boot partition. [YOCTO #6101] Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install

[OE-core] [PATCH v2 11/11] init-install: Properly delete partition table

2015-06-16 Thread Ed Bartosh
Fixed deletion of the partition table by increasing amount of sectors from 2(correct for msdos PT) to 35 as GPT size is 34 sectors + 1 sector for protective MBR. Signed-off-by: Ed Bartosh diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts

[OE-core] [PATCH v2 06/11] init-install: Implement UUID support

2015-06-16 Thread Ed Bartosh
Used partition UUID in kernel command line to specify root partition. Searched root device by file system uuid in GRUB configuration. Used partition UUID in /etc/fstab to specify swap partition. Used filesystem UUID in /etc/fstab to specify boot partition. [YOCTO #6101] Signed-off-by: Ed Bartosh

[OE-core] [wic][PATCH] oe-selftest: wic: Fix testcase

2015-06-16 Thread Ed Bartosh
Fixed test05_build_artifacts testcase by using values of MACHINE and BUILD_SYS bitbake variables in paths to artifacts. Test was failing because of hardcoded machine(qemux86) and build_sys(qemux86-poky-linux) in artifact paths. [YOCTO #7730] Signed-off-by: Ed Bartosh --- meta/lib/oeqa

[OE-core] [wic][PATCH] wic: Document creation of empty partition

2015-06-16 Thread Ed Bartosh
Added short explanation of how to create empty pattition to the 'wic help kickstart' command output. Signed-off-by: Ed Bartosh --- scripts/lib/image/help.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index 14f0ff

[OE-core] [wic][PATCH v2] wic: Document creation of empty partition

2015-06-16 Thread Ed Bartosh
Added short explanation of how to create empty pattition to the 'wic help kickstart' output. [YOCTO #7131] Signed-off-by: Ed Bartosh --- scripts/lib/image/help.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py ind

[OE-core] [wic][PATCH v2] wic: Return error code when wic fails to invoke command

2015-06-16 Thread Ed Bartosh
Return 1 if command doesn't exist or wic is called without any commmand. Return result of invoke_command as wic return code. Added tests for unsupported command and no command. Fixed typo in test case test02_createhelp spotted by this fix. [YOCTO #7856] Signed-off-by: Ed Bartosh --- met

[OE-core] [wic][PATCH] wic: Integrated plugin docstrings into 'wic help plugins' output

2015-06-17 Thread Ed Bartosh
Added mechanism to show docstrings of plugin classes as a part of plugins help page. For missing plugins the following warning message is shown: '> is missing docstring. [YOCTO #7118] Signed-off-by: Ed Bartosh --- scripts/lib/image/help.py | 18 ++ scr

[OE-core] [wic][PATCH] wic: Add missing docstrings to plugin classes

2015-06-17 Thread Ed Bartosh
Docstings from plugin classes are used as part of output of 'wic help plugins'. Adding them makes help page more informative. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct_plugin.py | 9 + scripts/lib/wic/plugins/source/bootimg-efi.py | 5

[OE-core] [wic][PATCH] wic: Code cleanup: bad-classmethod-argument

2015-06-17 Thread Ed Bartosh
Fixed wrong name for the first argument in class methods. Pylint complains about the issue this way: Class method should have 'cls' as first argument Signed-off-by: Ed Bartosh --- scripts/lib/wic/pluginbase.py | 8 scripts/lib/wic/plug

[OE-core] [wic][PATCH] wic: code cleanup: superfluous-parens

2015-06-17 Thread Ed Bartosh
Removed unncecessary parents after 'if' 'del' and 'print' keywords. Fixed pyling warning: Unnecessary parens after 'xxx' keyword Signed-off-by: Ed Bartosh --- scripts/lib/image/engine.py| 6 +++--- scripts/lib/image/h

[OE-core] [wic][PATCH] wic: removed unused command line option

2015-06-17 Thread Ed Bartosh
Removed -i/--infile wic command line option. Removed properties_file and properties arguments of wic_create function. Signed-off-by: Ed Bartosh --- scripts/lib/image/engine.py | 7 ++- scripts/wic | 8 +++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a

[OE-core] [PATCH v2] wic: removed unused command line option

2015-06-18 Thread Ed Bartosh
Removed -i/--infile wic command line option. Removed properties_file and properties arguments of wic_create function. Signed-off-by: Ed Bartosh --- scripts/lib/image/engine.py | 7 ++- scripts/lib/image/help.py | 7 --- scripts/wic | 8 +++- 3 files changed, 5

[OE-core] [wic][PATCH 0/6] Implemented image compressing: poky-contrib:ed/wic/compress-with

2015-06-23 Thread Ed Bartosh
ed that as well. Fixes [YOCTO #7593] Note: This patchset depends on poky-contrib:ed/wic/misc Ed Bartosh (6): wic: Add --compress-with command line option wic: Add new argument to wic_create function wic: Add new argument to direct plugin wic: Implement image compressing wic: Make code more pyt

[OE-core] [wic][PATCH 3/6] wic: Add new argument to direct plugin

2015-06-23 Thread Ed Bartosh
Added 'compressor' argument to Direct plugin API to pass a name of compressor utility. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 047c40d..d5c34b4 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py

[OE-core] [wic][PATCH 5/6] wic: Make code more pythonic

2015-06-23 Thread Ed Bartosh
Used more pythonic way to make a list. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index d5c34b4..47950f8 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py @@ -216,23 +216,13 @@ def wic_create(wks_file, rootfs_dir

[OE-core] [wic][PATCH 1/6] wic: Add --compress-with command line option

2015-06-23 Thread Ed Bartosh
Added -c/--compress-with command line option to 'wic create' subcommand. This option is used to specify compressor utility to compress the image produced by wic. gzip, bzip2 and xz compressors are supported in this implementation. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/ima

[OE-core] [wic][PATCH 4/6] wic: Implement image compressing

2015-06-23 Thread Ed Bartosh
Implemented compressing result image with specified compressor. Updated reporting code to show compressed image. [YOCTO #7593] Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index f3f20e0..2ea7e4e 100644 --- a/scripts/lib/wic/imager

[OE-core] [wic][PATCH 2/6] wic: Add new argument to wic_create function

2015-06-23 Thread Ed Bartosh
Added 'compressor' argument to wic_create to pass a name of compressor utility to the wic engine. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 29099ee..047c40d 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image

[OE-core] [wic][PATCH 6/6] wic: oe-selftest: Test image compressing

2015-06-23 Thread Ed Bartosh
Added 4 new testcases for 'wic --compress-with ' functionality. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 47b70fd..5385562 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py @@ -103,3 +103,3

Re: [OE-core] [wic][PATCH 4/6] wic: Implement image compressing

2015-06-24 Thread Ed Bartosh
line option or config value doesn't look convenient to use from my point of view. Can you propose something better than that? Regards, Ed > Philip > > On 06/23/2015 05:53 AM, Ed Bartosh wrote: > > Implemented compressing result image with specified compressor. > > Updated

[OE-core] [wic][PATCH 03/20] wic: Test rootfs plugin using rootfs paths

2015-06-29 Thread Ed Bartosh
Added testcase to create multi-rootfs images using rootfs plugin with paths to rootfs directories in wic command line. Signed-off-by: Ed Bartosh diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 3cfc2ff..0c503ef 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b

[OE-core] [wic][PATCH 01/20] wic: Fix misleading message

2015-06-29 Thread Ed Bartosh
Due to usage of incorrect variable wic produces strange message "No image named None found, exiting." when specified canned .wks doesn't exist. Fixed by replacing wks_file -> argv[0] Signed-off-by: Ed Bartosh diff --git a/scripts/wic b/scripts/wic index f9be972..a39ec95 10

[OE-core] [wic][PATCH 05/20] wic: Include mount point into image report

2015-06-29 Thread Ed Bartosh
Wic doesn't show any information for the partition if label is not set. Fixed this by adding mount point to the report. Signed-off-by: Ed Bartosh diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 2ea7e4e..58a9e9d 100644 --- a/scripts/lib/wic/imager/dire

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