summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild
index 03dcdd4d..e6156600 100644
--- a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild
+++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild
@@ -20,7 +20,6 @@ S="${FILESDIR}"
src_install() {
dodir "etc/dracut.conf.d" || die
insinto "etc/dracut.conf.d" || die
- doins redcore-dracut.conf || die
newins redcore-dracut.conf redcore-dracut.conf.example || die
}
@@ -29,3 +28,7 @@ pkg_preinst() {
rm -rf ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
fi
}
+
+pkg_postinst() {
+ cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.example" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf"
+}