Age | Commit message (Collapse) | Author |
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
- NTP chronyd is not suitable for Yocto, the systemd in
Yocto has its own NTP.
- Disable location detection, if network is not working, it may fail.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
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>
|
|
Since commit [816e08c systemd: upgrade to 241] applied in oe-core,
there is a racing on tty1, both of autovt@.service and
anaconda-init-screen@.service login, disable autovt services
and explicitly create tty2 for future use.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since commit [9e4214a lvm2/libdevmapper: 2.03.01 -> 2.03.02] applied
in meta-openembedded, enabling lvm2-monitor caused reboot hung after
target installation finished.
Drop lvm2-monitor enable to workaround reboot hung
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
If random number generator that failed to gather enough entropy,
in time, calls python-requests failed
...
|OpenSSL.SSL.Error: [('', 'osrandom_rand_bytes', 'getrandom()
initialization failed.'), ('', 'osrandom_rand_bytes', 'getrandom()
initialization failed.'), ('SSL routines', 'SSL_CTX_new',
'malloc failure')]
...
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since oe-core upgrade python3 to 3.7, the python3-anaconda failed
...
| File "/usr/lib64/python3.7/site-packages/pyanaconda/dbus/typing.py",
line 137, in get_dbus_representation
| raise TypeError("Unknown type: %s" % type_hint)
|TypeError: Unknown type: typing.List[typing.Dict[str, gi.overrides.GLib.Variant]]
...
Backport a patch to fix it
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Installing an image without lvm2-udevrules using Anaconda would
produce an un-bootable system because "/dev/mapper/xxx" files are
not created.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
|
|
They RDEPENDS on grub, so set the same COMPATIBLE_HOST as grub.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
|
Since commit [a052cae image/image-live: Improve handling of
live/iso/hddimg types (drop NOISO/NOHDD)] applied in oe-core,
we should tweak IMAGE_FSTYPES in core-image-anaconda.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Backport two commits from upstream anaconda
[2ae4063 Don't set Anaconda-specific flags in Blivet]
[55a7b4d DNF 3: config substitutions moved from dnf to libdnf]
Refine according to one commit from upstream dnf4
[b21f197 Not report scriplets errors as non-fatal]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
- Move DISTRO_FEATURES pam from layer.conf
For installer image, move it to anaconda.conf
For target image, append pam to distro feature check
and update README, selftest
- Remove SRC_DISTRIBUTE_LICENSES and licenses/FLTK
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
If the system does not support kvm, the selftest will always fail.
So remove it from runqemu command.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Add kvm to runqemu could speed up the installation
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Workaround runqemu without kvm, starting dbus without kvm is very slow
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since `8d3d529 libpwquality: Inherit distutils3-base' applied in meta-oe,
sub package python3-libpwquality is merged into package libpwquality.
Update its RDEPENDS python3-libpwquality -> libpwquality
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Download file from http/ftp server to target image
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Recipe core-image-anaconda-initramfs uses initramfs-live-boot
to boot from initramfs for PXE installation.
The scprit init-live.sh is inherited from oe-core, and add
`LABEL=initrd-install' to pxelinux cfg to enable PXE
installation.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
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>
|
|
For image copy install, support 64-bit installer to install
32-bit target image.
- Fix UEFI multilib installation
- Fix multilib user creation error
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Improve the fixes to compatible with OE community
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Have graphics and serial in the boot menu when use grub-efi in iso
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since oe-core fix the confliction of grub and grub-efi,
...
6fd0bc3 grub/grub-efi: fix conflict
...
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
This is a text UI framework originally which was a part of the
Anaconda installer project.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
In order to simplify test cases:
- For pkg install, split test_testanaconda_build_pkg_installer_image from
test_testanaconda_pkg_install, and let the latter depends the former
- For image copy install, split test_testanaconda_build_imagecopy_installer_image
from test_testanaconda_imagecopy_install, and let test_testanaconda_build_
imagecopy_installer_image depends test_testanaconda_pkg_install,
test_testanaconda_imagecopy_install depends test_testanaconda_build_imagecopy
_installer_image
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
In order to simplify each case, split test_testanaconda_create_target_disk
and test_testanaconda_build_target_image from setUpLocal
Let test_testanaconda_pkg_install and test_testanaconda_imagecopy_install
depends them.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Each get_bb_var invoking means a `bitbake -e', reduce invoking
get_bb_var times and use one get_bb_vars to replace.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The runqemu of oe-selftest requires a string of login banner " login:"
from serial, but the installer does not have, so simulate it.
It does not have any side effect for non-selftest.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The installer image is `core-image-anaconda' rather than
`core-image-minimal'
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Add two cases:
- Graphic pkg install:
$ oe-selftest -r anaconda_oe.TestAnacondaOE.test_testanaconda_pkg_install
- Text image copy install
$ oe-selftest -r anaconda_oe.TestAnacondaOE.test_testanaconda_imagecopy_install
- Run both of them
$ oe-selftest -r anaconda_oe.TestAnacondaOE
The target image is core-image-minimal which built at setUpLocal,
both of the case share it.
Start qemu with `slirp' which does not requires root right. While the
installation is 14400s timeout, it start a ssh at 2222 port to catch
the failure log.
Start qemu with vnc, you could login the install OS by
vncviewer <build-ip-address>:4
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
They are used for oe-selftest, ks-imagecopy.cfg for
text image copy install; ks-pkg.cfg for graphic pkg
install
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
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>
|
|
The setup-live module of initramfs-framework is introduced to integrate
the functionality of init-live.sh, but it missed to umount unused rootfs
which required by anaconda.
So add scriptlet named `umountfs' after scriptlet `realroot'
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The setup-live module of initramfs-framework is introduced to integrate
the functionality of init-live.sh, but it missed to create /media/realroot
which required by anaconda installer.
So add scriptlet named `realroot' after scriptlet `union-fs'
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The oe-core use initramfs-framework to replace initramfs-live-boot
...
commit 882ae0dcce2d96a7c286fc23b22b07972d3d8f93
Author: California Sullivan <california.l.sullivan@intel.com>
Date: Fri Apr 13 13:36:40 2018 -0700
core-image-minimal-initramfs: use initramfs-framework for initialization
...
The setup-live module of initramfs-framework is introduced to integrate
the functionality of init-live.sh, but it missed to setup union filesystem
which caused the rootfs is not writable.
So add scriptlet named `union-fs' after scriptlet `rootfs'
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
|
|
The switch_root is used by dracut to generate target's initramfs,
we should make sure the existence on target image.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Both of target and host build use libuser which missing
required distro feature 'pam' (not in DISTRO_FEATURES)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since the upstream OE remove recipe gnome-theme:
...
commit 187ef2f8c17bc388f93a2c736a5cff0248a66369
Author: Andreas Müller <schnitzeltony@gmail.com>
Date: Mon Mar 19 21:29:08 2018 +0100
gnome-themes: remove
project is dead - last release was in 2011. That was a gnome 3 port which was
not continued.
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
...
Remove gnome-theme from packagegroup-installer-x11-anaconda.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
fix:
Some of the context lines in patches were ignored. This can lead to
incorrectly applied patches.
The context lines in the patches can be updated with devtool:
devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>
Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch
workaround-for-anaconda-installer-while-loading-libA.patch
patching file gtk/gtkbuilder.c
Hunk #1 succeeded at 402 (offset 4 lines).
Hunk #2 succeeded at 430 with fuzz 1 (offset 4 lines).
Now at patch workaround-for-anaconda-installer-while-loading-libA.patch
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since the following commit applied in oe-core
...
commit 68150bac7444f089f19c789e9f6602d59f605d7a
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Tue Feb 27 17:22:32 2018 +0000
sstatesig/staging/package_manager: Create common sstate manifest cod
...
It requires the all arch package should inherit bbclass allarch
rather than set PACKAGE_ARCH = "all"
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since the following commit applied in oe-core
...
commit a51236a2441c33558568b649f7ca0363856697f7
Author: Martin Jansa <martin.jansa@gmail.com>
Date: Thu Mar 1 10:11:38 2018 +0000
libpam: be more strict about user's sanity
...
We should add pam to DISTRO_FEATURES
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
- For community version, the packagegroup-core-boot package will
runtime depends it;
- For Wind River Linux, it used packagegroup-busybox-replacement
to instead of busybox;
So the anaconda should not check the existence of busybox.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The target image from 1st build requires busybox.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|