From cdfbbe0d2e9c8b8ee5f96e32684af0f8ebd4e5da Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 28 Nov 2020 22:55:41 +0000 Subject: move : sys-kernel/dracut-config-redcore => sys-kernel/dracutcfg --- sys-kernel/dracutcfg/dracutcfg-1337.ebuild | 32 ++++++++++++++++++++++++++ sys-kernel/dracutcfg/files/redcore-dracut.conf | 14 +++++++++++ 2 files changed, 46 insertions(+) create mode 100644 sys-kernel/dracutcfg/dracutcfg-1337.ebuild create mode 100644 sys-kernel/dracutcfg/files/redcore-dracut.conf (limited to 'sys-kernel/dracutcfg') diff --git a/sys-kernel/dracutcfg/dracutcfg-1337.ebuild b/sys-kernel/dracutcfg/dracutcfg-1337.ebuild new file mode 100644 index 00000000..80ffaf22 --- /dev/null +++ b/sys-kernel/dracutcfg/dracutcfg-1337.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="Redcore Linux Dracut configuration files" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S="${FILESDIR}" + +src_install() { + dodir "etc/dracut.conf.d" || die + insinto "etc/dracut.conf.d" || die + newins redcore-dracut.conf redcore-dracut.conf.example || die +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then + rm -rf ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + fi +} + +pkg_postinst() { + cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.example" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" +} diff --git a/sys-kernel/dracutcfg/files/redcore-dracut.conf b/sys-kernel/dracutcfg/files/redcore-dracut.conf new file mode 100644 index 00000000..279e9bed --- /dev/null +++ b/sys-kernel/dracutcfg/files/redcore-dracut.conf @@ -0,0 +1,14 @@ +# Host-Only mode: Install only what is needed for booting the local host instead of a generic host and generate host-specific configuration. +hostonly="no" + +# Combine early microcode with ramdisk. Uncomment the line bellow, and run "dracut -f" if you want early microcode update. +# early_microcode="yes" + +# Dracut modules to add when building the iniframfs +add_dracutmodules+=" drm plymouth " + +# Dracut modules to ommit when building the initramfs. +omit_dracutmodules+=" systemd systemd-initrd systemd-networkd dracut-systemd " + +# Make sure we have vboxvideo && qxl inside the initramfs (Virtualbox/Qemu) +add_drivers+=" vboxvideo qxl " -- cgit v1.2.3