As Jannik mentions in the bug, modern Boost needs >= C++14, so crank
up the version used. This is fixed upstream in the git repo but not
in a release.
Closes: https://bugs.gentoo.org/946610
Signed-off-by: Sam James <sam@gentoo.org>
Otherwise, /etc/clang/gentoo-gcc-install.cfg is left with a broken non-existent
--gcc-install-dir value on LLVM-only profiles when the last installed GCC
gets removed.
Closes: https://bugs.gentoo.org/906040
Signed-off-by: Sam James <sam@gentoo.org>
Before this change the kernel installation is silently skipped in all cases.
Using sys-kernel/installkernel to generate an initramfs/uki will indeed be
a huge mess so when an initramfs is requested we now print a helpful error
message. If we do not want an initramfs, or the initramfs/uki was generated
with portage using USE=generic-uki then we can safely try to install the kernel.
Installkernel-50 is capable of dealing with this situation in most cases, but it
will print a bunch of warnings since plugins are skipped. Bootloader
configuration, for example, cannot be updated in this case.
For kernel modules we can also safely make this change, all modules that can be
in the initramfs have the initramfs flag and if it is enabled then we will also
hit this error message.
End result of this change is more verbosity when kernel installation is skipped
and basic support for installing the kernel with --root set for simple
configurations (no initramfs or generic-uki with compat layout or uki layout).
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/38842
Signed-off-by: Michał Górny <mgorny@gentoo.org>
And introduce a new variable DONT_MOUNT_ESP to disable only the mount
checking of the EFI System Partition. Useful for ebuilds where we know that
only /boot is touched and not /efi. Or for users that know their kernel
installation layout does not require mounting the ESP.
Bug: https://bugs.gentoo.org/937785
Bug: https://bugs.gentoo.org/939760
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
We know this only works if systemd is init because the systemd in the initramfs
cannot hand over control to openrc. Since these uki's are built on a 23.0
profile machine, they probably will also not work on a 17.x profile.
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
systemd 257's ukify gains the ability to specify multiple "profiles" for an
UKI. This allows us to finally solve Bug 921195, which made it impossible to
simultaneously enforce verification of the kernel image (secureboot) and
enforce verification of the kernel modules (lockdown=integrity).
We also add a profile for "quiet splash", and change KERNEL_GENERIC_UKI_CMDLINE
to add another profile instead of overwriting the built-in kernel cmdline. To
support splash we add the plymouth and drm dracut modules but omit the drm
kernel modules that pull in huge firmware files. This will result in a less
visually smooth boot, but significantly decreases the size of the image.
Ukify can now also pass on the signing engine argument to systemd-measure
which enables the usage of pkcs11 uri's for measured boot.
Minimal version of systemd for USE=generic-uki is bumped to 257.
Closes: https://bugs.gentoo.org/921195
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>