Revert "build: set PATH for post-install scripts"
This reverts commit 21b5ac862e
.
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@makrotopia.org>
This commit is contained in:
parent
a7abc7ec3b
commit
15de218a56
|
@ -84,7 +84,7 @@ define prepare_rootfs
|
||||||
IPKG_POSTINST_PATH=./usr/lib/opkg/info/*.postinst; \
|
IPKG_POSTINST_PATH=./usr/lib/opkg/info/*.postinst; \
|
||||||
fi; \
|
fi; \
|
||||||
for script in $$IPKG_POSTINST_PATH; do \
|
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=$$?; \
|
ret=$$?; \
|
||||||
if [ $$ret -ne 0 ]; then \
|
if [ $$ret -ne 0 ]; then \
|
||||||
echo "postinst script $$script has failed with exit code $$ret" >&2; \
|
echo "postinst script $$script has failed with exit code $$ret" >&2; \
|
||||||
|
|
Loading…
Reference in New Issue