From f18e431ca9d8486479e5b8976f63d0f8453e8986 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 24 Apr 2020 20:30:18 +0100 Subject: sys-kernel/dracut-config-redcore : revision bump --- .../dracut-config-redcore-1337-r2.ebuild | 36 ------------------- .../dracut-config-redcore-1337-r3.ebuild | 42 ++++++++++++++++++++++ .../files/redcore-dracut.conf | 6 ++-- 3 files changed, 45 insertions(+), 39 deletions(-) delete mode 100644 sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r2.ebuild create mode 100644 sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild 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 deleted file mode 100644 index cc283833..00000000 --- a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r2.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-r3.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild new file mode 100644 index 00000000..ebde8541 --- /dev/null +++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild @@ -0,0 +1,42 @@ +# 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" + sed -i "s/plymouth//g" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + sed -i "s/dracut-systemd/dracut-systemd\ plymouth\ /g" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + fi + + if [[ ! -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then + cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.example" ""${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 3b0d1087..f7393d77 100644 --- a/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf +++ b/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf @@ -2,13 +2,13 @@ hostonly="no" # Combine early microcode with ramdisk. Uncomment the line bellow, and run "dracut -f" if you want early microcode update. -early_microcode="yes" +# early_microcode="yes" # Dracut modules to add when building the iniframfs -add_dracutmodules+=" drm plymouth " +add_dracutmodules+=" drm " # Dracut modules to ommit when building the initramfs. -omit_dracutmodules+=" systemd systemd-initrd systemd-networkd dracut-systemd " +omit_dracutmodules+=" systemd systemd-initrd systemd-networkd dracut-systemd plymouth " # Make sure we have vboxvideo && qxl inside the initramfs (Virtualbox/Qemu) add_drivers+=" vboxvideo qxl " -- cgit v1.2.3