* [gentoo-commits] repo/gentoo:master commit in: profiles/features/selinux/, sys-kernel/installkernel-systemd-boot/
@ 2019-12-11 15:02 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2019-12-11 15:02 UTC (permalink / raw
To: gentoo-commits
commit: 0ece6c16adaa7f9050944383f470fc40741c0c29
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 6 16:36:11 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 15:01:27 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ece6c16
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 <AT> gentoo.org>
profiles/features/selinux/package.mask | 1 +
.../installkernel-systemd-boot-0.ebuild | 27 ++++++++++++++++++++++
sys-kernel/installkernel-systemd-boot/metadata.xml | 8 +++++++
3 files changed, 36 insertions(+)
diff --git a/profiles/features/selinux/package.mask b/profiles/features/selinux/package.mask
index f2ef0075999..957ea16b4f3 100644
--- a/profiles/features/selinux/package.mask
+++ b/profiles/features/selinux/package.mask
@@ -41,6 +41,7 @@ sys-apps/gentoo-systemd-integration
sys-apps/systemd-readahead
sys-process/systemd-cron
sys-apps/dbus-broker
+sys-kernel/installkernel-systemd-boot
# Gilles Dartiguelongue <eva@gentoo.org> (2018-05-24)
# Packages use systemd unconditionally for now
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 00000000000..725a7967a3e
--- /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 00000000000..0319eec4c8b
--- /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>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-11 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-11 15:02 [gentoo-commits] repo/gentoo:master commit in: profiles/features/selinux/, sys-kernel/installkernel-systemd-boot/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox