summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-13 18:06:59 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-13 18:06:59 +0100
commit0dfed93ff9118d9ab079541bcf02d5516cedd972 (patch)
treef4fbd57c44225b3108295a5e056319285fc92dc7
parentceb9b19a378e53ebd39332783d970a74f733a2ad (diff)
x11-themes/redcore-artwork-core : don't trigger initramfs regen if running in chroot
-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
}