summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-07-27 11:27:12 +0200
committerMatthew Thode <prometheanfire@gentoo.org>2023-07-27 13:26:02 -0500
commit4a4d6b1160258c9f42337973baf9f7b9820b6cc9 (patch)
treec78fef5d2c5238623b5c0e99bd7bd2d8d0ca9736 /eclass
parentdev-python/libsass: Enable py3.12 (diff)
downloadgentoo-4a4d6b1160258c9f42337973baf9f7b9820b6cc9.tar.gz
gentoo-4a4d6b1160258c9f42337973baf9f7b9820b6cc9.tar.bz2
gentoo-4a4d6b1160258c9f42337973baf9f7b9820b6cc9.zip
dist-kernel-utils.eclass: also rebuild initrd when using uki's
An UKI contains some initrd, so in situations where we want to regenerate the initrd we also want to rebuild the UKIs Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/dist-kernel-utils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass
index 666896028669..6903183b6efb 100644
--- a/eclass/dist-kernel-utils.eclass
+++ b/eclass/dist-kernel-utils.eclass
@@ -171,8 +171,8 @@ dist-kernel_reinstall_initramfs() {
eerror "Initramfs will not be updated. Please reinstall your kernel."
return
fi
- if [[ ! -f ${initramfs_path} ]]; then
- einfo "No initramfs found at ${initramfs_path}"
+ if [[ ! -f ${initramfs_path} && ! -f ${initramfs_path%/*}/uki.efi ]]; then
+ einfo "No initramfs or uki found at ${image_path}"
return
fi