[openwrt/openwrt] Revert "build: set PATH for post-install scripts"

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 9 05:56:22 PST 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/15de218a566c0563adcc184c5aa83b71b24e8cde

commit 15de218a566c0563adcc184c5aa83b71b24e8cde
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Nov 9 13:06:02 2024 +0000

    Revert "build: set PATH for post-install scripts"
    
    This reverts commit 21b5ac862eed7ac373361c914cf6098cab04f503.
    The approach is flawed and cannot work in the ImageBuilder.
    Using /etc/uci-defaults/ which is run on the target is the only
    possible way.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 include/rootfs.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/rootfs.mk b/include/rootfs.mk
index ff7fd185fe..e6cadc531d 100644
--- a/include/rootfs.mk
+++ b/include/rootfs.mk
@@ -84,7 +84,7 @@ define prepare_rootfs
 			IPKG_POSTINST_PATH=./usr/lib/opkg/info/*.postinst; \
 		fi; \
 		for script in $$IPKG_POSTINST_PATH; do \
-			PATH="$(TARGET_PATH_PKG)" IPKG_INSTROOT=$(1) $$(command -v bash) $$script; \
+			IPKG_INSTROOT=$(1) $$(command -v bash) $$script; \
 			ret=$$?; \
 			if [ $$ret -ne 0 ]; then \
 				echo "postinst script $$script has failed with exit code $$ret" >&2; \




More information about the lede-commits mailing list