summaryrefslogtreecommitdiff
path: root/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0')
-rw-r--r--packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-053
1 files changed, 53 insertions, 0 deletions
diff --git a/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0 b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0
new file mode 100644
index 0000000..23df176
--- /dev/null
+++ b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0
@@ -0,0 +1,53 @@
+# 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 ]
+ ]]
+"
+
+WORK="${FILES}"
+
+src_prepare() {
+ :
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /etc/dracut.conf.d
+ insinto /etc/dracut.conf.d
+ newins "${FILES}"/redcore-dracut.conf redcore-dracut.conf.example
+}
+
+pkg_preinst() {
+ if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then
+ edo 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
+ edo mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
+ fi
+}