summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-12-24 13:51:01 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-12-24 13:51:01 +0000
commitc6ffc00d10c23153d611893bf295b86a91046a95 (patch)
tree9e5697c7be216581ca01aa0ce2b0ee725d4b783d
parent55e8e801eb0df5bd039e28da241b456b8bfdcb63 (diff)
x11-themes/redcore-artwork-core : only regenerate initramfs when NOT in chroot
-rw-r--r--x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild (renamed from x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild)13
1 files changed, 11 insertions, 2 deletions
diff --git a/x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild b/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild
index 8dc99bc9..28efde7a 100644
--- a/x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild
+++ b/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild
@@ -12,7 +12,8 @@ LICENSE="CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
-RDEPEND="sys-apps/findutils"
+RDEPEND="sys-apps/findutils
+ >=x11-themes/hicolor-icon-theme-0.10"
S="${WORKDIR}"/"${PN}"
@@ -37,7 +38,15 @@ src_install() {
doins -r plymouth/themes/redcore
}
+_dracut_initramfs_regen() {
+ if [ -x $(which dracut) ]; then
+ dracut -N -f --no-hostonly-cmdline
+ fi
+}
+
pkg_postinst() {
# regenerate initramfs to include plymouth theme changes
- dracut -N -f --no-hostonly-cmdline
+ if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then
+ _dracut_initramfs_regen
+ fi
}