From 3e78cd0c93ff64be3bfb8820fb1dbf56971dac32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 7 Jul 2020 12:53:46 +0200 Subject: sys-kernel/cgroup-systemd: create new package --- profiles/devel/packages | 1 + sys-kernel/cgroup-systemd/cgroup-systemd-1.0.ebuild | 13 +++++++++++++ sys-kernel/cgroup-systemd/files/cgroup-systemd | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 sys-kernel/cgroup-systemd/cgroup-systemd-1.0.ebuild create mode 100644 sys-kernel/cgroup-systemd/files/cgroup-systemd diff --git a/profiles/devel/packages b/profiles/devel/packages index 2c5159f..6427f21 100644 --- a/profiles/devel/packages +++ b/profiles/devel/packages @@ -78,6 +78,7 @@ app-emulation/lxd app-shells/lxd-zsh-completions dev-python/pylxd app-emulation/docker +sys-kernel/cgroup-systemd # For barcode generation app-text/barcode diff --git a/sys-kernel/cgroup-systemd/cgroup-systemd-1.0.ebuild b/sys-kernel/cgroup-systemd/cgroup-systemd-1.0.ebuild new file mode 100644 index 0000000..1a56baf --- /dev/null +++ b/sys-kernel/cgroup-systemd/cgroup-systemd-1.0.ebuild @@ -0,0 +1,13 @@ +EAPI=7 + +DESCRIPTION="Init script to mount systemd cgroup automatically" +HOMEPAGE="http://git.cynerd.cz/gentoo-personal-overlay/" +S="${WORKDIR}" + +LICENSE="GPL-3.0+" +SLOT="0" +KEYWORDS="amd64" + +src_install() { + doinitd "${FILESDIR}/cgroup-systemd" +} diff --git a/sys-kernel/cgroup-systemd/files/cgroup-systemd b/sys-kernel/cgroup-systemd/files/cgroup-systemd new file mode 100644 index 0000000..faccf09 --- /dev/null +++ b/sys-kernel/cgroup-systemd/files/cgroup-systemd @@ -0,0 +1,12 @@ +#!/sbin/openrc-run + +description="Mounts systemd's cgroup." + +depend() { + need root +} + +start() { + mkdir -p /sys/fs/cgroup/systemd + mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd +} -- cgit v1.2.3