Files
gentoo/sys-kernel/installkernel-systemd-boot/installkernel-systemd-boot-2-r2.ebuild
Andrew Ammerlaan 0a05585bfc sys-kernel/installkernel-systemd-boot: no mkdir machineid if using uki
Uki's are installed to ESP/Linux, we don't need this empty directory

Plus an EAPI bump while we are touching the package

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/31559
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2023-06-22 08:28:02 +02:00

35 lines
820 B
Bash

# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Wrap kernel-install from systemd-boot as installkernel"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
RDEPEND="
!sys-kernel/installkernel-gentoo
|| (
sys-apps/systemd
sys-apps/systemd-utils[boot]
)
"
src_install() {
# we could technically use a symlink here but it would require
# us to know the correct path, and that implies /usr merge problems
into /
newsbin - installkernel <<-EOF
#!/usr/bin/env sh
exec kernel-install add "\${1}" "\${2}"
EOF
exeinto /usr/lib/kernel/install.d/
newexe "${FILESDIR}/${PF}-00-00machineid-directory.install" \
00-00machineid-directory.install
}