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

https://github.com/openwrt/openwrt/blame/2999f810ff2c968e6bbe5b2fd32cfbd80f83570a/target/imagebuilder/Makefile#L44

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.