aboutsummaryrefslogtreecommitdiffstats
path: root/classes/anaconda_image.bbclass
AgeCommit message (Collapse)Author
2023-12-06Remove argument 'True' from d.getVar callsKai Kang
Since True is default since 2016 and it is not necessary, remove it from d.getVar(). 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>
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-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-07-01anaconda_image.bbclass: remove target build dir from PSEUDO_IGNORE_PATHSKai Kang
The target build dir has bee added to PSEUDO_IGNORE_PATHS with packages install mode. It causes pseudo does not work when build target image and installer at the same build directory. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2021-07-01anaconda_image.bbclass: fix target build is relative pathKai Kang
There may be relative path set in INSTALLER_TARGET_BUILD. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2020-12-03anaconda_image.bbclass: make WRL_INSTALLER_CONF work againKai Kang
With recipe specific sysroots, not all the rpms which have been built in target build exist in directory oe-rootfs-repo in target image's $WORKDIR. When WRL_INSTALLER_CONF is set, it may installs extra packages which not exist in rpm repo and cause anaconda fails: | Problems in request: | missing packages: foo, bar Choose the $DEPLOY_DIR_RPM as the source to construct rpm repo in installer image if WRL_INSTALLER_CONF has been set. Then it could installs extra packages which set in WRL_INSTALLER_CONF. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2020-12-03anaconda_image.bbclass: fix pseudo errorKai Kang
When build installer image with 'Image Based Install', it is image file path in INSTALLER_TARGET_BUILD which cause pseudo error: | ERROR: Task (/path/to/wrlinux/dynamic-layers/meta-anaconda/recipes-installer/images/wrlinux-image-installer.bb:do_image_qa) failed with exit code '134' Check the pesudo.log: | path mismatch [3 links]: ino 105618668 db '/path/to/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-installer/1.0-r0/rootfs/LiveOS.wrlinux-image-std-intel-x86-64-20201022020556.rootfs.ext4-1/rootfs.img' req '/path/to/tmp-glibc/deploy/images/intel-x86-64/wrlinux-image-std-intel-x86-64-20201022020556.rootfs.ext4'. Add the dirname of image file to PSEUDO_IGNORE_PATHS to fix the error. There is no such error with 'Package Based Install'. Signed-off-by: Kai Kang <kai.kang@windriver.com>
2019-08-16limit product name less then 30 charsHongxu Jia
Previously 40 is still too long, which broke gui window layout Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-07-27classes/anaconda_image.bbclass: limit product name less then 40 charsHongxu Jia
If product name is too long, it broke gui window layout Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-07-11classes/anaconda_image.bbclass: fix pxe failed with multiple target buildsHongxu Jia
For initramfs, it missed to fill .target_build_list for multiple target builds Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-07-06classes/anaconda_image.bbclass: update treeinfoHongxu Jia
Since [095067c python3-productmd: add version 1.21], we should update treeinfo Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-06-21classes/anaconda_image.bbclass: override systemd_preset_allHongxu Jia
Since commit [a57678a image: call systemctl preset-all for images] applied in oe-core, it add systemd_preset_all, but installer image does not require. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-04-04classes/anaconda_image.bbclass: fix system-shutdown hang at ratelimitingHongxu Jia
Refer https://github.com/systemd/systemd/issues/5433, set kernel params `printk.devkmsg=on' to workaround. Kernel params details: https://lore.kernel.org/patchwork/patch/698730/ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2018-08-14classes/anaconda_image.bbclass: tweak location of copying target image local ↵Hongxu Jia
rpm repo Copy local rpm repo from target image's WORKDIR rather than public deploy rpm dir. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2018-07-05anaconda_image.bbclass: Add INSTALLER_TARGET_BUILD/INSTALLER_TARGET_IMAGE as ↵Hongxu Jia
a vardep Needed to automatically rebuild do_rootfs when INSTALLER_TARGET_BUILD/ INSTALLER_TARGET_IMAGE change. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2017-11-24meta-anaconda: add distro anaconda for host buildHongxu Jia
While DISTRO = "anaconda", it enable features of host build. The host build requires: - append anaconda_kernel to KERNEL_CLASSES to add kernel configs - misc setting in conf/distro/anaconda.conf for host build - copy package/image from target build to host image - add rpm packages check Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>