summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/dracut-config-redcore/dracut-config-redcore-1708.ebuild30
-rw-r--r--sys-kernel/dracut-config-redcore/files/redcore-dracut.conf (renamed from sys-kernel/dracut/files/redcore-dracut.conf)2
-rw-r--r--sys-kernel/dracut/dracut-044-r1708.ebuild10
-rw-r--r--sys-kernel/dracut/metadata.xml24
4 files changed, 37 insertions, 29 deletions
diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708.ebuild
new file mode 100644
index 00000000..6a443c35
--- /dev/null
+++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="Redcore Linux GRUB configuration files"
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="sys-boot/grub"
+
+S="${FILESDIR}"
+
+src_install() {
+ dodir "/etc/dracut.conf.d" || die
+ insinto "/etc/dracut.conf.d" || die
+ doins -r "${S}/"* || 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.backup"
+ fi
+}
diff --git a/sys-kernel/dracut/files/redcore-dracut.conf b/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf
index b3a3fa86..7e1c53db 100644
--- a/sys-kernel/dracut/files/redcore-dracut.conf
+++ b/sys-kernel/dracut-config-redcore/files/redcore-dracut.conf
@@ -2,7 +2,7 @@
hostonly="yes"
# 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 "
diff --git a/sys-kernel/dracut/dracut-044-r1708.ebuild b/sys-kernel/dracut/dracut-044-r1708.ebuild
index 8f5a61e2..e242b33d 100644
--- a/sys-kernel/dracut/dracut-044-r1708.ebuild
+++ b/sys-kernel/dracut/dracut-044-r1708.ebuild
@@ -12,12 +12,17 @@ SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE="debug selinux systemd"
+IUSE="debug selinux systemd +microcode"
RESTRICT="test"
CDEPEND="virtual/udev
systemd? ( >=sys-apps/systemd-199 )
+ microcode? (
+ sys-firmware/intel-microcode
+ sys-kernel/linux-firmware
+ )
+ sys-kernel/dracut-config-redcore
"
RDEPEND="${CDEPEND}
app-arch/cpio
@@ -156,9 +161,6 @@ src_install() {
insinto /etc/logrotate.d
newins dracut.logrotate dracut
- insinto /etc/dracut.conf.d
- doins "${FILESDIR}"/redcore-dracut.conf
-
dodir /var/lib/dracut/overlay
dohtml dracut.html
diff --git a/sys-kernel/dracut/metadata.xml b/sys-kernel/dracut/metadata.xml
deleted file mode 100644
index bc57bc2d..00000000
--- a/sys-kernel/dracut/metadata.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>chutzpah@gentoo.org</email>
- <name>Patrick McLean</name>
- </maintainer>
- <maintainer type="person">
- <email>alexander@tsoy.me</email>
- <name>Alexander Tsoy</name>
- </maintainer>
- <maintainer type="person">
- <email>aidecoe@gentoo.org</email>
- <name>Amadeusz Żołnowski</name>
- </maintainer>
- <use>
- <flag name="debug">Module installing additional tools like strace, file
- editor, ssh and more</flag>
- </use>
- <longdescription lang="en">
- Generic, modular initramfs generation tool that can be used across various
- distributions.
- </longdescription>
-</pkgmetadata>