summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* kernel-install.eclass: Update symlink if target has no sourcesMichał Górny2021-03-111-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Refactor /usr/src/linux check to functionMichał Górny2021-03-111-26/+43
| | | | | | | Refactor the check whether /usr/src/linux should be updated to a separate function, to improve readability. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix updating symlink w/ localversionMichał Górny2021-03-101-0/+1
| | | | | Closes: https://bugs.gentoo.org/775176 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix handling EOF in test phaseMichał Górny2021-03-071-6/+10
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix initrd cleanup for uefi=yesMichał Górny2021-03-011-3/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Include a RDEP on libelfMichał Górny2021-02-281-0/+6
| | | | | Closes: https://bugs.gentoo.org/732210 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix bypassing dracut configsMichał Górny2021-02-281-2/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Improve error message on /boot problemsMichał Górny2021-01-161-1/+1
| | | | | | | | Use the newly-introduced mount-boot.eclass nonfatal support to amend the error message with the instruction to run 'emerge --config' rather than rebuild the whole kernel. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Improve failed install error messagesMichał Górny2021-01-161-13/+30
| | | | | | | Support and use nonfatal to provide a detailed error message when kernel postinst fails, in particular the correct 'emerge --config' command. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Include SLOT in --config suggestionMichał Górny2021-01-161-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Update symlink before installingMichał Górny2021-01-161-2/+1
| | | | | | | | | Update symlink before actually installing the kernel. This primarily ensures that module rebuilds triggered by the upgrade will work correctly even if postinst fails. Besides, pkg_config() retries installing the kernel but does not update the symlink. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Move common to kernel-install_install_allMichał Górny2021-01-161-30/+32
| | | | | | | | | Move the code shared by pkg_postinst() and pkg_config() to a new kernel-install_install_all() function. After all, the purpose of pkg_config() is to repeat what pkg_postinst() does normally. Keeping it in a common function improves maintainability. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* dist-kernel-utils.eclass: Introduce eclass for helper functionsMichał Górny2021-01-131-73/+9
| | | | | | | | | | | | Move some of the utility functions from kernel-install.eclass into dist-kernel-utils.eclass, in order to permit using them without having all kernel-install phases exported. This will be used in order to support rebuilding initramfs in sys-fs/zfs-kmod. Since the eclasses are used only by dist-kernel project eclasses and ebuilds, update the function prefix while moving them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/kernel-install.eclass: rework testsGeorgy Yakovlev2020-08-291-23/+96
| | | | | | | | | | | instead of using linux image we compile tiny static binary and use it as /sbin/init image is simply created using mkfs.ext4 -d option arm tests need qemu keyworded, so disabled for now Closes: https://github.com/gentoo/gentoo/pull/17305 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/kernel-install.eclass: add ppc64 image pathGeorgy Yakovlev2020-08-281-0/+5
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/kernel-install.eclass: restrict tests on ppc64 (for now)Georgy Yakovlev2020-08-281-1/+3
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* kernel-install.eclass: Restrict tests on arm&arm64Michał Górny2020-08-131-1/+5
| | | | | | Restrict tests on arches that currently lack a test image. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Pass '-cpu max' on amd64 onlyMichał Górny2020-08-011-1/+3
| | | | | | It seems to break testing on 32-bit x86. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Run tests with '-cpu max'Michał Górny2020-07-181-1/+2
| | | | | | | | | Since dracut is using host system executables, qemu needs to be able to execute these executables independently of the CFLAGS used by the user. For this reason make sure to enable all supported instruction sets rather than the default. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-{build,install}.eclass: support Kconfig LOCALVERSIONDavid GUGLIELMI2020-06-291-13/+23
| | | | | | Signed-off-by: David GUGLIELMI <david.guglielmi@gmail.com> Closes: https://bugs.gentoo.org/720930 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Warn about linux-firmware in pkg_pretend()Michał Górny2020-06-241-1/+24
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Add pkg_config() to reinstallMichał Górny2020-06-241-0/+23
| | | | | | | Add a pkg_config() phase that can be used to rebuild the initramfs and reinstall the kernel without rebuilding the whole package. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-{build,install}.eclass: more ARM supportAlexey Shvetsov2020-05-211-0/+12
| | | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Print elog about symlink updateMichał Górny2020-04-291-0/+7
| | | | | Bug: https://bugs.gentoo.org/719910 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Remove initramfs in postrmMichał Górny2020-01-251-1/+7
| | | | | Closes: https://bugs.gentoo.org/706332 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix initrd locationMichał Górny2020-01-091-2/+4
| | | | | Closes: https://bugs.gentoo.org/705058 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Install logic for dist-kernelsMichał Górny2020-01-091-0/+309
Introduce a new eclass that contains common logic needed to test and install distribution kernels. This is the eclass common both to kernels built from source and installed from binary packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>