summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0 (renamed from packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0)6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0 b/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0
index 2e126d1..d0eed0c 100644
--- a/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0
+++ b/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0
@@ -55,12 +55,14 @@ src_install() {
}
_dracut_initramfs_regen() {
- if [[ -x $(which dracut) ]]; then
+ if [ -x $(which dracut) ]; then
dracut -N -f --no-hostonly-cmdline
fi
}
pkg_postinst() {
# regenerate dracut initramfs (reason : include updated plymouth theme)
- _dracut_initramfs_regen
+ if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then
+ _dracut_initramfs_regen
+ fi
}