From a47be25ce291efd782bf2fda417d95eb705c4a72 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 13 Jan 2019 12:30:18 +0000 Subject: sys-kernel/dracut-config-redcore : make sure we have vboxvideo/qxl inside initramfs --- .../dracut-config-redcore-1337-r1.ebuild | 36 ---------------------- .../dracut-config-redcore-1337-r2.ebuild | 36 ++++++++++++++++++++++ .../files/redcore-dracut.conf | 3 ++ 3 files changed, 39 insertions(+), 36 deletions(-) delete mode 100644 sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r1.ebuild create mode 100644 sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r2.ebuild diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r1.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r1.ebuild deleted file mode 100644 index cc283833..00000000 --- a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# 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="" - -RDEPEND="sys-kernel/dracut" - -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 - mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" - fi -} - -pkg_postinst() { - if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ]]; then - mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" - fi -} diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r2.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r2.ebuild new file mode 100644 index 00000000..cc283833 --- /dev/null +++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r2.ebuild @@ -0,0 +1,36 @@ +# 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="" + +RDEPEND="sys-kernel/dracut" + +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 + mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" + fi +} + +pkg_postinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ]]; then + mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + fi +} diff --git a/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf b/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf index 0791417f..3b0d1087 100644 --- a/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf +++ b/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf @@ -9,3 +9,6 @@ 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