[OE-core] [PATCH 1/2] wic/help: change 'wic write' help description

2019-10-21 Thread chee . yang . lee
From: Chee Yang Lee update the help desciption for 'wic write' command to match behaviour. see commit: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/scripts/wic?id=74b44e59be89c738f702948f9e16e367c0ba43ba Signed-off-by: Chee Yang Lee --- scripts/lib/wic/help.py | 4 ++

[OE-core] [PATCH 2/2] wic/engine: use 'linux-swap' for swap file system

2019-10-21 Thread chee . yang . lee
From: Chee Yang Lee [YOCTO #13312] see https://bugzilla.yoctoproject.org/show_bug.cgi?id=13312 wic/engine.Disk._get_part_image was looking at variable fstypes for supported fstype which is 'swap' but image build with 'linux-swap'. supported fstype should be 'linux-sw

[OE-core] [PATCH] wic: beautify 'wic help'

2019-11-07 Thread chee . yang . lee
From: Chee Yang Lee The Wic help returned to the user is unreadable. Use a custom ArgumentParser to override argparse help message. change help message as suggest in https://bugzilla.yoctoproject.org/show_bug.cgi?id=12205 [YOCTO #12205] changes applies to 'wic help', 'wic -h&

[OE-core] [PATCH 1/2] selftest/wic: test wic rm with -r flag

2019-11-14 Thread chee . yang . lee
From: Chee Yang Lee selftest to make sure wic rm with -r flag for ext partition could remove directory and all its content. Signed-off-by: Chee Yang Lee --- meta/lib/oeqa/selftest/cases/wic.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b

[OE-core] [PATCH 2/2] wic: rm with -r flag support

2019-11-14 Thread chee . yang . lee
From: Chee Yang Lee wic currently unable to remove non-empty directory in ext* partition. enable wic rm to remove non-empty directory and all the sub-content with -r flag. update help documents for 'wic rm'. [YOCTO #12404] Signed-off-by: Chee Yang Lee --- scripts/lib/wic/engi

[OE-core] [PATCH] wic: 'wic cp' to copy from image

2019-11-20 Thread chee . yang . lee
From: Chee Yang Lee currently 'wic cp' only works for copy file from local storage to wic image. enhance 'wic cp' to copy file/directory from wic image to local storage. include selftest and 'wic help' updates. Signed-off-by: Chee Yang Lee --- meta/lib/o

[OE-core] [PATCH v2] wic: 'wic cp' to copy from image

2019-11-20 Thread chee . yang . lee
From: Chee Yang Lee currently 'wic cp' only works for copy file from local storage to wic image. enhance 'wic cp' to copy file/directory from wic image to local storage. include selftest and 'wic help' updates. [YOCTO#12169] Signed-off-by: Chee Yang Lee ---

[OE-core] [PATCH][zeus] virglrenderer : fix CVE-2019-18388

2020-03-20 Thread chee . yang . lee
From: Chee Yang Lee Signed-off-by: Chee Yang Lee --- .../virglrenderer/CVE-2019-18388.patch | 141 + .../virglrenderer/virglrenderer_0.8.0.bb | 3 +- 2 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-graphics

[OE-core] [meta-intel][PATCH v2] wic: add image-installer.wks.in

2019-05-31 Thread chee . yang . lee
From: Chee Yang Lee This wks.in create image that perform installation similar to hddimg. Partition in ext4 format allow rootfs size to be greater than hddimg limit which is 4GB. To build simple installer image, add below configuration to local.conf: WKS_FILE = "image-installer.w

[OE-core] [PATCH] wic/engine: include .wks.in in wic search and list

2019-06-05 Thread chee . yang . lee
From: Chee Yang Lee allow wic to list and search for kickstart file in .wks.in extension. basename show by wic list images to fully exclude extension. Signed-off-by: Chee Yang Lee --- scripts/lib/wic/engine.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts

[OE-core] [PATCH] wic/plugins: kernel image refer to KERNEL_IMAGETYPE

2019-06-10 Thread chee . yang . lee
From: Chee Yang Lee replaced hardcoded kernel image with KERNEL_IMAGETYPE. set kernel image to "bzImage" incase KERNEL_IMAGETYPE not set. Signed-off-by: Chee Yang Lee --- scripts/lib/wic/plugins/source/bootimg-efi.py | 21 +++-- scripts/lib/wic/plugins/sour

[OE-core] [PATCH] wic/bootimg-efi: allow multiple initrd

2019-06-12 Thread chee . yang . lee
From: Chee Yang Lee Allow plugin bootimg-efi to configure with multiple initrd through source parameter. Uses ; to separate each initrd. e.g: --sourceparams="loader=${EFI_PROVIDER},initrd=initrd1;initrd2" Signed-off-by: Chee Yang Lee --- scripts/lib/wic/plugins/source/bootimg-e

[OE-core] [PATCH v2] wic/bootimg-efi: allow multiple initrd

2019-06-19 Thread chee . yang . lee
From: Chee Yang Lee Allow plugin bootimg-efi to configure with multiple initrd through source parameter. Uses ; to separate each initrd. e.g: --sourceparams="loader=${EFI_PROVIDER},initrd=initrd1;initrd2" Signed-off-by: Chee Yang Lee --- scripts/lib/wic/plugins/source/bootimg-e

[OE-core] [PATCH] wic: add support for kernel with initramfs bundled

2019-07-16 Thread chee . yang . lee
From: Chee Yang Lee when INITRAMFS_IMAGE_BUNDLE and INITRAMFS_IMAGE are set, wic should look for kernel with initramfs image bundled. Include required variable MACHINE, INITRAMFS_IMAGE_BUNDLE, INITRAMFS_IMAGE, INITRAMFS_LINK_NAME and KERNEL_IMAGETYPE in WICVARS. No longer require default value

[OE-core] [PATCH] add variable APPENDS for multiple boot configuration

2019-08-02 Thread chee . yang . lee
From: Chee Yang Lee This patch introduce new variable APPENDS to define multiple boot configuration for systemd-boot and grub-efi. APPENDS set the different in kernel option for each .conf file(for systemd-boot) or menuentry(for grub-efi). Include the differences in the title. Separate each

[OE-core] [PATCH v2] systemd-boot:grub-efi:wic: add variable APPENDS for multiple boot configuration

2019-08-02 Thread chee . yang . lee
From: Chee Yang Lee introduce new variable APPENDS to define multiple boot configuration for systemd-boot and grub-efi. APPENDS set the different in kernel option for each .conf file(for systemd-boot) or menuentry(for grub-efi). Include the differences in the title. Separate each configuration

[OE-core] [PATCH 1/2] bash: include patch 8-11

2020-01-20 Thread chee . yang . lee
From: Lee Chee Yang Signed-off-by: Lee Chee Yang --- meta/recipes-extended/bash/bash_5.0.bb | 12 1 file changed, 12 insertions(+) diff --git a/meta/recipes-extended/bash/bash_5.0.bb b/meta/recipes-extended/bash/bash_5.0.bb index eadc822..0c7b234 100644 --- a/meta/recipes-extende

[OE-core] [PATCH 2/2] rsync: whitelist CVE-2017-16548

2020-01-20 Thread chee . yang . lee
From: Lee Chee Yang patch for this CVE applies to v3.1.3pre1 not for v3.1.3. patch already in v3.1.3. see https://git.samba.org/rsync.git/?p=rsync.git;a=commitdiff;h=47a63d90e71d3e19e0e96052bb8c6b9cb140ecc1;hp=bc112b0e7feece62ce98708092306639a8a53cce Signed-off-by: Lee Chee Yang --- meta/recip

[OE-core] [PATCH][zeus] libxml2: Fix CVE-2019-19956

2020-01-22 Thread chee . yang . lee
commit/5a02583c7e683896d84878bd90641d8d9b0d0549] +CVE: CVE-2019-19956 + +Signed-off-by: Chee Yang Lee + +--- + parser.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/parser.c b/parser.c +index 1ce1ccf1..26d9f4e3 100644 +--- a/parser.c b/parser.c +@@ -13894,7 +13894,8 @@ xmlParseBalancedChunkMemoryR

[OE-core] [PATCH 1/2] bash: include patch 12-16

2020-02-14 Thread chee . yang . lee
From: Lee Chee Yang Signed-off-by: Lee Chee Yang --- meta/recipes-extended/bash/bash_5.0.bb | 15 +++ 1 file changed, 15 insertions(+) diff --git a/meta/recipes-extended/bash/bash_5.0.bb b/meta/recipes-extended/bash/bash_5.0.bb index 0c7b234..8ff9e6e 100644 --- a/meta/recipes-exte

[OE-core] [PATCH 2/2] libxml2: Fix CVE-2019-20388

2020-02-14 Thread chee . yang . lee
From: Lee Chee Yang see: https://gitlab.gnome.org/GNOME/libxml2/merge_requests/68 Signed-off-by: Lee Chee Yang --- .../libxml/libxml2/CVE-2019-20388.patch| 33 ++ meta/recipes-core/libxml/libxml2_2.9.10.bb | 1 + 2 files changed, 34 insertions(+) creat

[OE-core] [PATCH v2 2/2] libxml2: Fix CVE-2019-20388

2020-02-14 Thread chee . yang . lee
From: Lee Chee Yang see: https://gitlab.gnome.org/GNOME/libxml2/merge_requests/68 Signed-off-by: Lee Chee Yang --- .../libxml/libxml2/CVE-2019-20388.patch| 37 ++ meta/recipes-core/libxml/libxml2_2.9.10.bb | 1 + 2 files changed, 38 insertions(+) creat

[OE-core] [PATCH v2 1/2] bash: include patch 12-16

2020-02-14 Thread chee . yang . lee
From: Lee Chee Yang Signed-off-by: Lee Chee Yang --- meta/recipes-extended/bash/bash_5.0.bb | 15 +++ 1 file changed, 15 insertions(+) diff --git a/meta/recipes-extended/bash/bash_5.0.bb b/meta/recipes-extended/bash/bash_5.0.bb index 0c7b234..8ff9e6e 100644 --- a/meta/recipes-exte

[OE-core] [PATCH v3] libxml2: Fix CVE-2019-20388

2020-02-14 Thread chee . yang . lee
From: Lee Chee Yang see: https://gitlab.gnome.org/GNOME/libxml2/merge_requests/68 Signed-off-by: Lee Chee Yang --- .../libxml/libxml2/CVE-2019-20388.patch| 37 ++ meta/recipes-core/libxml/libxml2_2.9.10.bb | 1 + 2 files changed, 38 insertions(+) creat

[OE-core] [PATCH] qemu: Fix CVE-2020-1711

2020-02-23 Thread chee . yang . lee
From: Lee Chee Yang see https://git.qemu.org/?p=qemu.git;a=commit;h=693fd2acdf14dd86c0bf852610f1c2cca80a74dc Signed-off-by: Lee Chee Yang --- meta/recipes-devtools/qemu/qemu.inc| 3 +- .../recipes-devtools/qemu/qemu/CVE-2020-1711.patch | 64 ++ 2 files cha

[OE-core] [PATCH][zeus] qemu: Fix CVE-2020-1711

2020-02-23 Thread chee . yang . lee
From: Lee Chee Yang see https://git.qemu.org/?p=qemu.git;a=commit;h=693fd2acdf14dd86c0bf852610f1c2cca80a74dc Signed-off-by: Lee Chee Yang --- meta/recipes-devtools/qemu/qemu.inc| 3 +- .../recipes-devtools/qemu/qemu/CVE-2020-1711.patch | 64 ++ 2 files cha

[OE-core] [PATCH][zeus] virglrenderer: fix multiple CVEs

2020-03-01 Thread chee . yang . lee
From: Lee Chee Yang fix these CVE: CVE-2019-18390 CVE-2019-18391 CVE-2020-8002 Signed-off-by: Lee Chee Yang --- .../virglrenderer/CVE-2019-18390.patch | 66 ++ .../virglrenderer/CVE-2019-18391.patch | 51 + .../virglrenderer/CVE-2020-

[OE-core] [PATCH] cve-check: show whitelisted status

2020-03-05 Thread chee . yang . lee
From: Chee Yang Lee change whitelisted CVE status from "Patched" to "Whitelisted". [Yocto #13687] Signed-off-by: Chee Yang Lee --- meta/classes/cve-check.bbclass | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/meta/classes/cve-check.bbclas

[OE-core] [PATCH] cve-check: fix ValueError

2020-03-08 Thread chee . yang . lee
From: Chee Yang Lee fix below error for whitelisted recipe and recipe skip cve check. Error: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: *** 0002:do_cve_check(d) 0003: Fi

[OE-core] [PATCH][zeus 1/2] qemu: fix CVE-2019-20382

2020-03-10 Thread chee . yang . lee
From: Lee Chee Yang Signed-off-by: Lee Chee Yang --- meta/recipes-devtools/qemu/qemu.inc|1 + .../qemu/qemu/CVE-2019-20382.patch | 1018 2 files changed, 1019 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2019-2038

[OE-core] [PATCH][zeus 2/2] libpcre2: fix CVE-2019-20454

2020-03-10 Thread chee . yang . lee
From: Lee Chee Yang Signed-off-by: Lee Chee Yang --- .../libpcre/libpcre2/CVE-2019-20454.patch | 19 +++ meta/recipes-support/libpcre/libpcre2_10.33.bb| 1 + 2 files changed, 20 insertions(+) create mode 100644 meta/recipes-support/libpcre/libpcre2/CVE-2019

[OE-core] [PATCH 0/4] add wic based image installer

2019-05-08 Thread chee . yang . lee
From: Chee Yang Lee Existing installable image (hddimg/ISO) has limit of 4GB size, so to build larger installable image, we can build it in wic based image. 2 partition needed for installable image - first partition build using source plugin bootimg-efi and configure to run install - second

[OE-core] [PATCH 1/4] wic: add new installer-partition plugin

2019-05-08 Thread chee . yang . lee
From: Chee Yang Lee This patch implement 'installer-partition.py' source plugin for wic. The plugin create an image with systemd-boot and rootfs. The generated image can be use to create wic based image installer. Signed-off-by: Chee Yang Lee --- .../lib/wic/plugins/source

[OE-core] [PATCH 3/4] wic: add new wic-installer.wks for wic based image installer

2019-05-08 Thread chee . yang . lee
From: Chee Yang Lee Signed-off-by: Chee Yang Lee --- scripts/lib/wic/canned-wks/wic-installer.wks.in | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 scripts/lib/wic/canned-wks/wic-installer.wks.in diff --git a/scripts/lib/wic/canned-wks/wic-installer.wks.in b/scripts/lib/wic

[OE-core] [PATCH 2/4] wic: bootimg-efi: add label source parameter

2019-05-08 Thread chee . yang . lee
From: Chee Yang Lee Add new source parameter label to allow boot.conf/grub.cfg label option to set as "install-efi", so far it's hardcoded to "Boot". The label remain to "Boot" for systemd-boot or blank for grub-efi whenever label are not "install-ef

[OE-core] [PATCH 4/4] image_types_wic: add dependency for wic based image installer

2019-05-08 Thread chee . yang . lee
From: Chee Yang Lee initramfs and rootfs image are required to build wic based image installer, add both as dependency for do_image_wic. initiate default value for LIVE_ROOTFS_TYPE, INITRD_IMAGE_LIVE and INITRD_LIVE Signed-off-by: Chee Yang Lee --- meta/classes/image_types_wic.bbclass | 6

[OE-core] [PATCH] wic/bootimg-efi: replace hardcoded volume name with label

2019-05-09 Thread chee . yang . lee
From: Chee Yang Lee volume name should refer to --label in .wks. Replace the hardcoded volume name with label. Keep "efi" as default name when no lable specified. Signed-off-by: Chee Yang Lee --- scripts/lib/wic/plugins/source/bootimg-efi.py | 6 -- 1 file changed, 4 insert

[OE-core] [PATCH v2] wic/bootimg-efi: replace hardcoded volume name with label

2019-05-12 Thread chee . yang . lee
From: Chee Yang Lee volume name should refer to --label in .wks. Replace the hardcoded volume name with label. set "ESP" as default name when no lable specified. Signed-off-by: Chee Yang Lee --- scripts/lib/wic/plugins/source/bootimg-efi.py | 6 -- 1 file changed, 4 insert

[OE-core] [PATCH] wic: bootimg-efi: add label source parameter

2019-05-26 Thread chee . yang . lee
From: Chee Yang Lee Add new source parameter label to allow boot.conf/grub.cfg label option to set as "install-efi", so far it's hardcoded to "Boot". The label remain to "Boot" for systemd-boot or blank for grub-efi whenever label are not "install-ef

[OE-core] [PATCH v2] wic: bootimg-efi: add label source parameter

2019-05-30 Thread chee . yang . lee
From: Chee Yang Lee Add new source parameter label to allow custom boot.conf/grub.cfg label, so far it's hardcoded to "Boot". Default label to "Boot" for systemd-boot and blank for grub-efi when source parameter label are not set. Signed-off-by: Chee Yang Lee ---