diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-29 18:51:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-29 18:51:45 +0000 |
commit | e5ff0d1f729392b6a4ac2e76a304091f857c79d2 (patch) | |
tree | 587489000b148671078ae16784ccc174196ffa44 /sys-kernel/dracut-config-redcore/dracut-config-redcore-1710.ebuild | |
parent | 04057b66480d681fef1d9d623f21ccf105a1dded (diff) |
more revbumps for redcore 1710
Diffstat (limited to 'sys-kernel/dracut-config-redcore/dracut-config-redcore-1710.ebuild')
-rw-r--r-- | sys-kernel/dracut-config-redcore/dracut-config-redcore-1710.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1710.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1710.ebuild new file mode 100644 index 00000000..caae14ed --- /dev/null +++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1710.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="Redcore Linux Dracut configuration files" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-boot/grub" + +S="${FILESDIR}" + +src_install() { + dodir "/etc/dracut.conf.d" || die + insinto "/etc/dracut.conf.d" || die + doins -r "${S}/"* || die +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then + cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.backup" + fi +} + +pkg_postinst() { + elog "Your previous Dracut configuration was saved as /etc/dracut.conf.d/redcore-dracut.conf.backup" + elog "Please adjust the new configuration to suit you and regenerate the Dracut initramfs image" + elog "by using : /usr/bin/dracut -f" +} |