summaryrefslogtreecommitdiff
path: root/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-0
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-09-28 18:36:13 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-09-28 18:36:13 +0100
commit9d7df0cb808d7cef8c5dbb57bb2903543643992f (patch)
tree45afa5b6858c851001bcee61c05e0dd0a68db0a3 /packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-0
parenteee04575cbc8e0a8b938c0e899be7f7e22d8546d (diff)
sys-boot/dracut-config-redcore : don't rely on eclectic config for /etc/dracut.conf.d/redcore-dracut.conf
Diffstat (limited to 'packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-0')
-rw-r--r--packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-057
1 files changed, 57 insertions, 0 deletions
diff --git a/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-0 b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-0
new file mode 100644
index 0000000..e1019a8
--- /dev/null
+++ b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r2.exheres-0
@@ -0,0 +1,57 @@
+# 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" ]]; then
+ edo cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.example" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
+ fi
+
+ 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
+}