aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-05-18lvm2: fix yocto-check-layer test_signatures failurekirkstoneKai Kang
Add a extra file lvm2_anaconda.inc to fix yocto-check-layer test_signatures failure: Variable PACKAGECONFIG value changed: @@ -1 +1,3 @@ -odirect ${LVM2_PACKAGECONFIG} +odirect ${LVM2_PACKAGECONFIG}${@bb.utils.contains('DISTRO', 'anaconda', ' thin-provisioning-tools', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'anaconda-support', ' thin-provisioning-tools', '', d)} +DISTRO {anaconda} = Unset +DISTRO_FEATURES {anaconda-support} = Unset Signed-off-by: Kai Kang <kai.kang@windriver.com>
2023-05-18gtk+3: fix yocto-check-layer failureKai Kang
Fix yocto-check-layer failure for gtk+3: INFO: test_patches_upstream_status (common.CommonCheckLayer) INFO: ... expected failure INFO: Traceback (most recent call last): File "/path_to/poky/scripts/lib/checklayer/cases/common.py", line 87, in test_patches_upstream_status self.assertEqual(len(patches), 0 , \ AssertionError: 1 != 0 : Found following patches with malformed or missing upstream status: /path_to/meta-anaconda/recipes-gnome/gtk+/files/workaround-for-anaconda-installer-while-loading-libA.patch Signed-off-by: Kai Kang <kai.kang@windriver.com>
2023-03-24anaconda.conf: increase size of eltorito boot imageKai Kang
It calculates the size of efi_img directory with du option '--apparent-size' to create the eltorito boot image with command mkdosfs. It is an approximate value which is a little small with the default 512 blocks extra space. The UEFI fireware can't read the boot file in dir /EFI of the boot image. Increase the BOOTIMG_EXTRA_SPACE to 4096 to make it work. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-04-29crypt.cfg: remove dropped configKai Kang
Kernel config 'CONFIG_CRYPTO_AES_X86_64' has been dropped by upstream: commit 1d2c3279311e4f03fcf164e1366f2fda9f4bfccf Author: Ard Biesheuvel <ardb@kernel.org> Date: Tue Jul 2 21:41:24 2019 +0200 crypto: x86/aes - drop scalar assembler implementations The AES assembler code for x86 isn't actually faster than code generated by the compiler from aes_generic.c, and considering the disproportionate maintenance burden of assembler code on x86, it is better just to drop it entirely. Modern x86 systems will use AES-NI anyway, and given that the modules being removed have a dependency on aes_generic already, we can remove them without running the risk of regressions. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> So remove it from crypt.cfg accordingly. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-04-29Use SPDX license namesKai Kang
Run script convert-spdx-licenses.py from oe-core to use SPDX license names. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09python3-simpleline: inherit setuptools3_legacyKai Kang
python3-simpleline does not support wheel build, so inherit setuptools3_legacy instead. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09layer.conf: update LAYERSERIES_COMPAT with kirkstoneKai Kang
Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09README: update boot options with prefix 'inst.'Kai Kang
Update boot options 'ksuser' and 'kspasswd' with prefix 'inst.' which is required by anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09python3-anaconda: update error message with option prefixKai Kang
It requires options have prefix 'inst.' in anaconda 34. Update error message accordingly. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09anaconda-init: support anaconda option prefix 'inst.'Kai Kang
It requires options have prefix 'inst.' in anaconda 34. So update anaconda-init to support it. Because the anaconda installer is launched by anaconda-init in meta-anaconda, options without prefix 'inst.' still work. But it will show warnings when start anaconda. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09anaconda-init: drop removed anaconda optionsKai Kang
Drop removed anaconda options headless, kbdtype and loglevel. They have been removed by following anaconda commits: * ff7f7dba8 Remove the headless Anaconda option * 1a3d1c45d Remove the kbdtype option * c19453899 Remove the loglevel option Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09anaconda: set GRUB_DISTRIBUTOR with target systemKai Kang
Set GRUB_DISTRIBUTOR for grub with target system rather than installer image. It will make grub item title more exactly. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09anaconda_kernel.bbclass: replace efivars with efivarfsKai Kang
efivarfs is a replacement filesystem for the old EFI variable support via sysfs(efivars). So replace efivars with efivarfs for anaconda kernel. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09anaconda_image.bbclass: enable efi runtime for -rt kernelKai Kang
EFI runtime services have been disabled by default for -rt kernel in kernel source code. It then causes anaconda installer fails to install images with linux-yocto-rt kernel. Re-enable efi runtime services on RT for anaconda image. Config 'efi=runtime' is also appended to config of syslinux which is for legacy bios boot. The config is useless for bios and harmless too. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09packagegroup-anaconda-support.bb: remove init-ifupdownKai Kang
init-ifupdown is useless for target image and cause ethernet cards fail to setup. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09packagegroup-installer-x11-anaconda: mark TUNE_PKGARCH specificKai Kang
It fails to build packagegroup-installer-x11-anaconda: | ERROR: packagegroup-installer-x11-anaconda-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (libsdl2-dbg to libsdl2-2.0-dbg) | ERROR: packagegroup-installer-x11-anaconda-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (dbus to dbus-1) | ERROR: packagegroup-installer-x11-anaconda-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (libsdl2 to libsdl2-2.0-0) | ERROR: packagegroup-installer-x11-anaconda-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (libsdl2-dev to libsdl2-2.0-dev) So mark packagegroup-installer-x11-anaconda TUNE_PKGARCH specific. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-03-09packagegroup-anaconda-support: mark TUNE_PKGARCH specificKai Kang
It fails to build packagegroup-anaconda-support: | ERROR: packagegroup-anaconda-support-1.0-r0 do_package_write_rpm: An allarch packagegroup shouldn't depend on packages which are dynamically renamed (kernel-image to kernel-image-5.10.82-yocto-standard) So mark packagegroup-anaconda-support TUNE_PKGARCH specific. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2022-01-29Update SRC_URI git default branchChangqing Li
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Kai Kang <Kai.Kang@windriver.com>
2021-11-24Remove 'live' from IMAGE_FSTYPESKai Kang
'live' image has a size limitation which should be less than 4GB. And it is useless for anaconda_support images and core-image-anaconda itself. So remove it from IMAGE_FSTYPES for them both. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: filter out .sig fileKai Kang
It does not filter bzImage*.sig files out when compare kernel versions when anaconda gets kernel version list of target image and causes runtime error. Filter out .sig file to make it work. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24lvm2: enable package config thin-provisioning-toolsKai Kang
Enable package config thin-provisioning-tools of lvm2 for both installer-support image and installer image. It help to support LVM Thin Provisioning. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: correct 0009Kai Kang
There are something wrong with 0009-dynamic-detect-workable-locale.patch when update to anaconda 34. It shows too many languages which are not supported in gui mode. Correct it to show language supported only. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24anaconda_image.bbclass: set SYSTEMD_DEFAULT_TARGETKai Kang
It set SYSTEMD_DEFAULT_TARGET with graphical.target if "x11-base" or "weston" set in IMAGE_FEATURES in rootfs-postcommands.bbclass. Then it fails to start metacity for anaconda that X already exists. Set SYSTEMD_DEFAULT_TARGET with multi-user.target for installer image to make sure anaconda start as expected. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: reset default autopart typeKai Kang
It introduced a new variable default_scheme to replace the old one DEFAULT_AUTOPART_TYPE. Both of the default values are 'LVM'. But it is overridden by 'BTRFS' in fedora.conf which is used as default profile for OE. Because it fails to create home directory for new users, reset to use 'LVM' to fix the issue and for backward compatile as well. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24anaconda: fix efi boot failedHongxu Jia
- Tweak efi_dir according to oe-core's EFI layout - Drop grub-mkrelpath which is not necessary for oe-core's EFI layout Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2021-11-24anaconda: always write fstab after installHongxu Jia
We should write the storage after doing the installation which always writes fstab after instal, make sure the generated /etc/fstab not overwritten by the one from package install. Always write configure file at late_storage. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2021-11-24python3-anaconda: update patch 0019Kai Kang
Update 0019-support-UEFI-boot.patch to use correct command grub-mkrelpath. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: refactor patch 0068Kai Kang
Rename and refactor 0068-disable-chronyd.patch to not install chrony unintentionally. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: fix up patch 0003Kai Kang
It should call fnmatch.fnmatch() rather than fnmatch() directly. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: customize live image for oeKai Kang
Customize live image for oe: * disable ssl verification * customize repo path Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-11-24python3-anaconda: add required packages with new wayKai Kang
It changes the way to add required packages with class Requirement. Adapt to use the new way. And make function _oe_configure_post() public with remove prefix underscore('_'). Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-pykickstart: enable root ssh loginKai Kang
Add option '--sshlogin' for command rootpw. It could remember and redo the selection of option "Allow root SSH login with password" of anaconda installler. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: support ntpKai Kang
Make python3-anaconda depend on chrony to support ntp. And remove patch 0027-disable-ntp-support.patch. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17systemd: remove package config 'timesyncd'Kai Kang
Remove package config 'timesyncd' for systemd to avoid conflict with chrony. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: drop deprecated patch 0041Kai Kang
Drop 0041-live-install-supports-kickstart.patch since the property ksdata.method.method has been removed. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: find live os for oeKai Kang
The path of live os image in oe is hardcoded in anaconda-init. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: use 'Fedora' as default productKai Kang
It used to use 'Fedora' as default product in Anaconda 32. But it changed to get from /etc/os-release file. Set it with 'Fedora' directly for oe. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17Convert to new override syntaxKai Kang
This is the result of automated script (0.9.3) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". And consider override 'anaconda' as well. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: fix fuzzy patchesKai Kang
Fix fuzzy patches of python3-anaconda via command $ devtool modify python3-anaconda $ devtool finish --force-patch-refresh python3-anaconda /path/to/layers/meta-anaconda Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0077Kai Kang
Rename anaconda-enable-root-ssh-login.patch with 0077-xxx for convenience. And rebase it for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0076Kai Kang
Rename 0001-limit-product-name-less-then-30-chars.patch with 0076-xxx for convenience. And rebase it for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rename patchKai Kang
Rename 0001-pyanaconda-payload-Fix-xserver-detection.patch with 0075-pyanaconda-payload-Fix-xserver-detection.patch for convenience. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: remove backported patch 0074Kai Kang
Remove 0074-Fix-SECTION-headers-in-docstrings.patch which is backported from anaconda upstream. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: remove merged patch 0073Kai Kang
Remove 0073-Fix-kickstart-file-error-with-user-groups.patch which has been merged by anaconda upstream. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0072Kai Kang
Rebase 0072-fix-sshd-config.patch for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0071Kai Kang
Rebase 0071-disable-payloads-flatpak-ostree.patch for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0070Kai Kang
Rebase 0070-remove-unsupported-icon-from-main-page-and-tweak-ico.patch for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0066Kai Kang
Rebase 0066-fix-calling-grub-mkconfig-failed.patch for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0065Kai Kang
Rebase 0065-bootloader.py-fix-UEFI-multilib-installation.patch for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-08-17python3-anaconda: rebase patch 0063Kai Kang
Rebase 0063-update-fstab-by-appending.patch for anaconda 34. Signed-off-by: Kai Kang <kai.kang@windriver.com>