diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-12-06 17:36:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-12-11 16:01:27 +0100 |
commit | 0ece6c16adaa7f9050944383f470fc40741c0c29 (patch) | |
tree | 94d381007ab6b640bb34592a05643c1c4bf73a32 /sys-kernel/installkernel-systemd-boot | |
parent | dev-libs/libgit2: arm64 stable (bug #702522) (diff) | |
download | gentoo-0ece6c16adaa7f9050944383f470fc40741c0c29.tar.gz gentoo-0ece6c16adaa7f9050944383f470fc40741c0c29.tar.bz2 gentoo-0ece6c16adaa7f9050944383f470fc40741c0c29.zip |
sys-kernel/installkernel-systemd-boot: New package
New package to install 'installkernel' wrapper that uses systemd-boot's
kernel-install.
Bug: https://bugs.gentoo.org/702164
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/installkernel-systemd-boot')
-rw-r--r-- | sys-kernel/installkernel-systemd-boot/installkernel-systemd-boot-0.ebuild | 27 | ||||
-rw-r--r-- | sys-kernel/installkernel-systemd-boot/metadata.xml | 8 |
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-kernel/installkernel-systemd-boot/installkernel-systemd-boot-0.ebuild b/sys-kernel/installkernel-systemd-boot/installkernel-systemd-boot-0.ebuild new file mode 100644 index 000000000000..725a7967a3e1 --- /dev/null +++ b/sys-kernel/installkernel-systemd-boot/installkernel-systemd-boot-0.ebuild @@ -0,0 +1,27 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Wrap kernel-install from systemd-boot as installkernel" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="|| ( sys-apps/systemd sys-boot/systemd-boot ) + !<sys-apps/debianutils-4.9-r1[installkernel] + !sys-kernel/installkernel-gentoo" + +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 + #!/bin/sh + exec kernel-install add "\${1}" "\${2}" + EOF +} diff --git a/sys-kernel/installkernel-systemd-boot/metadata.xml b/sys-kernel/installkernel-systemd-boot/metadata.xml new file mode 100644 index 000000000000..0319eec4c8be --- /dev/null +++ b/sys-kernel/installkernel-systemd-boot/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> +</pkgmetadata> |