Matching downloaded image packages using image builder

After years of using 'opkg update && opkg-list-upgradable | cut -d " " -f 1 | xargs opkg upgrade' to apply updates to my router, I've run into a problem that's rendered parts of my router nonfunctional.

Having researched that issue and found that even though opkg includes an upgrade functionality, it's not intended to be used to upgrade packages (which I don't understand, but OK), I'm rebuilding my firmware.

Since I've added a few extra packages over the years to my router, I want to include them in the image so I spend less time configuring them when I re-flash the firmware. In looking at the image builder, it seems this is the easiest way to do it, but I'm having difficulty figuring out how to include the "standard" packages that are built by the build server.

Where can I find the configuration used by the build server to build the official images?

Salu2

Inspect the config.seed file in the same directory as the downloadable images. E.g. https://downloads.openwrt.org/releases/18.06.2/targets/ar71xx/generic/config.seed

To convert that into a list usable for the IB, you can apply some sed transformations, e.g.:

jow@jow:~$ echo PACKAGES=\"$(wget -qO- https://downloads.openwrt.org/releases/18.06.2/targets/ar71xx/generic/config.seed | sed -rne 's/^CONFIG_PACKAGE_(.+)=y/\1/p')\"
PACKAGES="libiwinfo-lua liblua liblucihttp liblucihttp-lua libubus-lua lua luci luci-app-firewall luci-base luci-lib-ip luci-lib-jsonc luci-lib-nixio luci-mod-admin-full luci-proto-ipv6 luci-proto-ppp luci-theme-bootstrap rpcd rpcd-mod-rrdns uhttpd"
3 Likes

Thanks - will check it out.

Perfect, that's exactly what I needed. Thanks for the quick assist!

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