rootfs: fix USE_APK detection

Due to missing quotes the script would wrongly assume APK to be enabled
and don't run post install scripts, breaking pretty much everything.

Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Paul Spooren 2024-05-18 23:10:49 +03:00
parent 99636d4dd8
commit 52a225cba4
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ define prepare_rootfs
@mkdir -p $(1)/var/lock @mkdir -p $(1)/var/lock
@( \ @( \
cd $(1); \ cd $(1); \
if [ -n $(CONFIG_USE_APK) ]; then \ if [ -n "$(CONFIG_USE_APK)" ]; then \
$(STAGING_DIR_HOST)/bin/tar -xf ./lib/apk/db/scripts.tar --wildcards "*.post-install" -O > script.sh; \ $(STAGING_DIR_HOST)/bin/tar -xf ./lib/apk/db/scripts.tar --wildcards "*.post-install" -O > script.sh; \
chmod +x script.sh; \ chmod +x script.sh; \
IPKG_INSTROOT=$(1) $$(command -v bash) script.sh; \ IPKG_INSTROOT=$(1) $$(command -v bash) script.sh; \