21.02.0 image builder is missing a line in repositories.conf

I have to use some additional custom packages for one of the projects and https://openwrt.org/docs/guide-user/additional-software/imagebuilder#custom_packages has always worked until I've tried using it with the 21.02.0 IB downloaded from OpenWrt servers.

While the previous release image builders included the following lines:

## This is the local package repository, do not remove!
src imagebuilder file:packages

The 21.02.0 image builder doesn't include it while it's mentioned in https://github.com/openwrt/openwrt/blob/1e4b191ac8901328a726ebdc09ebe35da4363521/target/imagebuilder/Makefile#L52-L53

@jow @aparcar @hnyman @tmomas we either need to change the wiki if it's an intentional change or maybe update/adjust something in the buildbots so that the local packages repository is still included in the repositories.conf of the image builders built by buildbots.

PS. The proper Packages and Packages.gz files are being generated within packages/ even tho it's missing from repositories.conf, making me believe it's an unintentional change/bug, but I didn't try to trace when did it happen. Let me know if this should be reported at https://bugs.openwrt.org/ instead.

1 Like


1 Like

Looks like this is a culprit: https://github.com/openwrt/openwrt/commit/6c21bcaa65d0b9c38f60a9735de59cf441c3be52

Would this fix it? https://github.com/aparcar/openwrt/commit/5e57909e8684c73087fd4e464b41393eebdc1f69

Just a heads up, the package index was being created before, even with the missing line in repositories.conf.

Just stumbled upon the same issue - the imagebuilder failed, as the custom ipk in packages/ was not found. Adding the two lines mentioned above to repositories.conf seems to fix it.

Here's a one-liner to add the required line if it's missing: grep -q 'imagebuilder' repositories.conf || sed -i "\$i src imagebuilder file:packages" repositories.conf

I use it in my build script.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.