diff options
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/dracut-config-redcore/dracut-config-redcore-1337-r3.ebuild | 6 |
1 files changed, 6 insertions, 0 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 b57f2ab0..03dcdd4d 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 @@ -23,3 +23,9 @@ src_install() { doins redcore-dracut.conf || die newins redcore-dracut.conf redcore-dracut.conf.example || die } + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then + rm -rf ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + fi +} |