[openwrt/openwrt] imagebuilder: skip repository file when standalone
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 23 13:14:11 PST 2026
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7bb79b9d5391b2292d5b517822eae71a7bf5efdf
commit 7bb79b9d5391b2292d5b517822eae71a7bf5efdf
Author: George Sapkin <george at sapk.in>
AuthorDate: Fri Jan 23 18:58:36 2026 +0200
imagebuilder: skip repository file when standalone
Standalone image builder doesn't have a repositories file as all
packages are included, which causes:
ERROR: failed to read repositories: PATH_TO_BUILDER/repositories: No such file or directory
The images are still built, so this is more of an informational error.
Pass related argument to apk only when CONFIG_IB_STANDALONE is not set.
Fixes: a8d17c21 ("imagebuilder: actually support IB from buildbot")
Signed-off-by: George Sapkin <george at sapk.in>
Link: https://github.com/openwrt/openwrt/pull/21658
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/imagebuilder/files/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index a44eb8b988..c9de9aee93 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -98,7 +98,7 @@ OPKG:=$(call opkg,$(TARGET_DIR)) \
export APK_KEYS:=$(TOPDIR)/keys
APK:=$(call apk,$(TARGET_DIR)) \
- --repositories-file $(TOPDIR)/repositories \
+ $(if $(CONFIG_IB_STANDALONE),,--repositories-file $(TOPDIR)/repositories) \
--repository $(PACKAGE_DIR)/packages.adb \
$(if $(CONFIG_SIGNATURE_CHECK),,--allow-untrusted) \
--cache-dir $(DL_DIR)
More information about the lede-commits
mailing list