summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337.exheres-039
-rw-r--r--packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf11
-rw-r--r--packages/sys-boot/dracut/dracut.exlib3
3 files changed, 53 insertions, 0 deletions
diff --git a/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337.exheres-0 b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337.exheres-0
new file mode 100644
index 0000000..5110049
--- /dev/null
+++ b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337.exheres-0
@@ -0,0 +1,39 @@
+# Copyright 2018 Redcore Linux Project
+# Distributed under the terms of the GNU General Public License v2
+
+SUMMARY="Redcore Linux Project dracut config"
+DESCRIPTION="Dracut configuration file for Redcore Linux Project"
+HOMEPAGE="https://redcorelinux.org"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS=""
+
+DEPENDENCIES="
+ run:
+ firmware/intel-microcode [[
+ description = [ early microcode for Intel CPU's ]
+ ]]
+ firmware/linux-firmware [[
+ description = [ early microcode for AMD CPU's ]
+ ]]
+"
+
+src_prepare() {
+ :
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /etc/dracut.conf.d
+ insinto /etc/dracut.conf.d
+ doins "${FILES}"/redcore-dracut.conf
+}
diff --git a/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf b/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf
new file mode 100644
index 0000000..0791417
--- /dev/null
+++ b/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf
@@ -0,0 +1,11 @@
+# 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 "
diff --git a/packages/sys-boot/dracut/dracut.exlib b/packages/sys-boot/dracut/dracut.exlib
index bc674db..84b58b7 100644
--- a/packages/sys-boot/dracut/dracut.exlib
+++ b/packages/sys-boot/dracut/dracut.exlib
@@ -46,6 +46,9 @@ DEPENDENCIES="
test:
app-shells/dash
recommendation:
+ sys-boot/dracut-config-redcore [[
+ description = [ Redcore Linux Project dracut config ]
+ ]]
sys-process/procps [[
description = [ Required by the base module for pidof if not using busybox ]
]]