summaryrefslogtreecommitdiff
path: root/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-20 08:25:53 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-20 08:25:53 +0100
commit47d147c172c019f40acd955f5e72482495925e92 (patch)
tree75aba5985421edff87400796e6664bfc21866fcf /packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0
parent9bd7b9e0256f9209538f750cd4c1ad882b749b46 (diff)
sys-boot/dracut-config-redcore : make sure /etc/fstab is installed into initrd, prevent qemu to be installed
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
+}