Imagebuilder missing luci

I'm trying to build 23.05.3 image for Cudy WR3000 and RE3000 devices, and after first compiling from source, i discovered imagebuilder and how much easier a little bit of customization (for OpenWISP) could be done.

Unfortunately the images built with imagebuilder seem to miss all the "good stuff", even though they include the extra packages and customizations i provide.

So something is working, but i'd really like to have images identical to the releases images published, but including luci/uhttpd/etc. (plus my customizations).

This is the CI pipeline i'm using:

stages:
  - build

variables:
  OPENWRT_VERSION: 23.05.3
  FILES: ${CI_PROJECT_PATH}/files
  PACKAGES: openwisp-config openwisp-monitoring netjson-monitoring
  DISABLED_SERVICES: dnsmasq firewall odhcpd
  EXTRA_IMAGE_NAME: fakedOrg

.build_image:
  stage: build
  image: openwrt/imagebuilder:${TARGET}-${SUBTARGET}-${OPENWRT_VERSION}
  before_script:
    - if [[ -d ./packages ]]; then mv ./packages /builder/; fi
    - if [[ -d ./dl ]]; then mv ./dl /builder/; fi
    - for url in $(cat packages.txt); do curl --create-dirs -s -O --output-dir /builder/packages $url; done && ls -1 /builder/packages
    - cd /builder
  script:
    - make image PROFILE=${PROFILE} FILES=${FILES} PACKAGES="${PACKAGES}" V=sc
  after_script:
    - if [[ -d /builder/bin ]]; then mv /builder/bin .; fi
    - if [[ -d /builder/dl ]]; then mv /builder/dl .; fi
  cache:
    key: ${OPENWRT_VERSION}-${TARGET}
    paths:
      - dl/
  artifacts:
    paths:
      - bin/
    expire_in: 1 hour

cudy_wr3000-v1:
  extends: .build_image
  variables:
    TARGET: mediatek
    SUBTARGET: filogic
    PROFILE: cudy_wr3000-v1

cudy_re3000-v1:
  extends: .build_image
  variables:
    TARGET: mediatek
    SUBTARGET: filogic
    PROFILE: cudy_re3000-v1

And this is the job log for the cudy_wr3000-v1 job:

[...]
e[0Ksection_start:1716752533:restore_cache
e[0Ke[0Ke[36;1mRestoring cachee[0;me[0;m
e[32;1mChecking cache for 23.05.3-mediatek-1-protected...e[0;m
Downloading cache from https://minio.faked.org/gitlab-runner/cache/project/130/23.05.3-mediatek-1-protectede[0;m 
e[32;1mSuccessfully extracted cachee[0;m

section_end:1716752534:restore_cache
e[0Ksection_start:1716752534:step_script
e[0Ke[0Ke[36;1mExecuting "step_script" stage of the job scripte[0;me[0;m
e[32;1m$ if [[ -d ./packages ]]; then mv ./packages /builder/; fie[0;m
e[32;1m$ if [[ -d ./dl ]]; then mv ./dl /builder/; fie[0;m
e[32;1m$ for url in $(cat packages.txt); do curl --create-dirs -s -O --output-dir /builder/packages $url; done && ls -1 /builder/packagese[0;m
netjson-monitoring_0.1.1-1_all.ipk
openwisp-config_1.1.0a-1_all.ipk
openwisp-monitoring_0.1.1-1_all.ipk
Packages
README.md
e[32;1m$ cd /buildere[0;m
e[32;1m$ make image PROFILE=${PROFILE} FILES=${FILES} PACKAGES="${PACKAGES}" V=sce[0;m
Generate local signing keys...
Generate local certificate...
Checking 'true'... ok.
Checking 'false'... ok.
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'proper-umask'... ok.
Checking 'perl-data-dumper'... ok.
Checking 'perl-findbin'... ok.
Checking 'perl-file-copy'... ok.
Checking 'perl-file-compare'... ok.
Checking 'perl-thread-queue'... ok.
Checking 'tar'... ok.
Checking 'find'... ok.
Checking 'bash'... ok.
Checking 'xargs'... ok.
Checking 'patch'... ok.
Checking 'diff'... 
ok.
Checking 'cp'... ok.
Checking 'seq'... ok.
Checking 'awk'... ok.
Checking 'grep'... ok.
Checking 'egrep'... ok.
Checking 'getopt'... ok.
Checking 'realpath'... ok.
Checking 'stat'... ok.
Checking 'gzip'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'wget'... ok.
Checking 'install'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'python3'... ok.
Checking 'python3-distutils'... ok.
Checking 'python3-stdlib'... ok.
Checking 'file'... ok.
Checking 'which'... ok.
Checking 'ldconfig-stub'... ok.
Building images for mediatek - Cudy WR3000 v1
Packages: openwisp-config openwisp-monitoring netjson-monitoring base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kernel kmod-crypto-hw-safexcel kmod-gpio-button-hotplug kmod-leds-gpio kmod-mt7915e kmod-mt7981-firmware kmod-nft-offload kmod-phy-aquantia libc libgcc libustream-mbedtls logd mt7981-wo-firmware mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls

Package list missing or not up-to-date, generating it.

Building package index...
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/mediatek/filogic/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/mediatek/filogic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check passed.

Installing packages...
Installing libc (1.2.4-4) to root...
Installing libgcc1 (12.3.0-4) to root...
Copying /builder/dl/libgcc1_12.3.0-4_aarch64_cortex-a53.ipk.
Configuring libgcc1.
Configuring libc.
Installing kernel (5.15.150-1-83850846aeb31a278a010941bbebf326) to root...
Configuring kernel.
Installing openwisp-config (1.1.0a-1) to root...
Downloading file:packages/openwisp-config_1.1.0a-1_all.ipk
Installing libmbedtls12 (2.28.7-2) to root...
Copying /builder/dl/libmbedtls12_2.28.7-2_aarch64_cortex-a53.ipk.
Installing libnghttp2-14 (1.57.0-1) to root...
Copying /builder/dl/libnghttp2-14_1.57.0-1_aarch64_cortex-a53.ipk.
Installing ca-bundle (20230311-1) to root...
Copying /builder/dl/ca-bundle_20230311-1_all.ipk.
Installing libcurl4 (8.7.1-r1) to root...
Copying /builder/dl/libcurl4_8.7.1-r1_aarch64_cortex-a53.ipk.
Installing curl (8.7.1-r1) to root...
Copying /builder/dl/curl_8.7.1-r1_aarch64_cortex-a53.ipk.
Installing liblua5.1.5 (5.1.5-11) to root...
Copying /builder/dl/liblua5.1.5_5.1.5-11_aarch64_cortex-a53.ipk.
Installing lua (5.1.5-11) to root...
Copying /builder/dl/lua_5.1.5-11_aarch64_cortex-a53.ipk.
Installing libubox20230523 (2023-05-23-75a3b870-1) to root...
Copying /builder/dl/libubox20230523_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk.
Installing libuci20130104 (2023-08-10-5781664d-1) to root...
Copying /builder/dl/libuci20130104_2023-08-10-5781664d-1_aarch64_cortex-a53.ipk.
Installing libuci-lua (2023-08-10-5781664d-1) to root...
Copying /builder/dl/libuci-lua_2023-08-10-5781664d-1_aarch64_cortex-a53.ipk.
Installing luafilesystem (1.8.0-1) to root...
Copying /builder/dl/luafilesystem_1.8.0-1_aarch64_cortex-a53.ipk.
Installing luci-lib-nixio (git-24.034.54875-21210dc) to root...
Copying /builder/dl/luci-lib-nixio_git-24.034.54875-21210dc_aarch64_cortex-a53.ipk.
Installing ca-certificates (20230311-1) to root...
Copying /builder/dl/ca-certificates_20230311-1_all.ipk.
Installing openwisp-monitoring (0.1.1-2) to root...
Copying /builder/dl/openwisp-monitoring_0.1.1-2_aarch64_cortex-a53.ipk.
Installing libubus20230605 (2023-06-05-f787c97b-1) to root...
Copying /builder/dl/libubus20230605_2023-06-05-f787c97b-1_aarch64_cortex-a53.ipk.
Installing libubus-lua (2023-06-05-f787c97b-1) to root...
Copying /builder/dl/libubus-lua_2023-06-05-f787c97b-1_aarch64_cortex-a53.ipk.
Installing lua-cjson (2.1.0-2) to root...
Copying /builder/dl/lua-cjson_2.1.0-2_aarch64_cortex-a53.ipk.
Installing libjson-c5 (0.16-3) to root...
Copying /builder/dl/libjson-c5_0.16-3_aarch64_cortex-a53.ipk.
Installing libblobmsg-json20230523 (2023-05-23-75a3b870-1) to root...
Copying /builder/dl/libblobmsg-json20230523_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk.
Installing rpcd (2023-07-01-c07ab2f9-1) to root...
Copying /builder/dl/rpcd_2023-07-01-c07ab2f9-1_aarch64_cortex-a53.ipk.
Installing libnl-tiny1 (2023-07-27-bc92a280-1) to root...
Copying /builder/dl/libnl-tiny1_2023-07-27-bc92a280-1_aarch64_cortex-a53.ipk.
Installing libiwinfo-data (2023-07-01-ca79f641-1) to root...
Copying /builder/dl/libiwinfo-data_2023-07-01-ca79f641-1_aarch64_cortex-a53.ipk.
Installing libiwinfo20230701 (2023-07-01-ca79f641-1) to root...
Copying /builder/dl/libiwinfo20230701_2023-07-01-ca79f641-1_aarch64_cortex-a53.ipk.
Installing rpcd-mod-iwinfo (2023-07-01-c07ab2f9-1) to root...
Copying /builder/dl/rpcd-mod-iwinfo_2023-07-01-c07ab2f9-1_aarch64_cortex-a53.ipk.
Installing netjson-monitoring (0.1.1-2) to root...
Copying /builder/dl/netjson-monitoring_0.1.1-2_aarch64_cortex-a53.ipk.
Package netjson-monitoring (0.1.1-2) installed in root is up to date.
Installing base-files (1554-r23809-234f1a2efa) to root...
Copying /builder/dl/base-files_1554-r23809-234f1a2efa_aarch64_cortex-a53.ipk.
Installing ubusd (2023-06-05-f787c97b-1) to root...
Copying /builder/dl/ubusd_2023-06-05-f787c97b-1_aarch64_cortex-a53.ipk.
Installing ubus (2023-06-05-f787c97b-1) to root...
Copying /builder/dl/ubus_2023-06-05-f787c97b-1_aarch64_cortex-a53.ipk.
Installing jshn (2023-05-23-75a3b870-1) to root...
Copying /builder/dl/jshn_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk.
Installing netifd (2024-01-04-c18cc79d-2) to root...
Copying /builder/dl/netifd_2024-01-04-c18cc79d-2_aarch64_cortex-a53.ipk.
Installing jsonfilter (2024-01-23-594cfa86-1) to root...
Copying /builder/dl/jsonfilter_2024-01-23-594cfa86-1_aarch64_cortex-a53.ipk.
Installing usign (2020-05-23-f1f65026-1) to root...
Copy
ing /builder/dl/usign_2020-05-23-f1f65026-1_aarch64_cortex-a53.ipk.
Installing openwrt-keyring (2022-03-25-62471e69-2) to root...
Copying /builder/dl/openwrt-keyring_2022-03-25-62471e69-2_aarch64_cortex-a53.ipk.
Installing ubi-utils (2.1.5-1) to root...
Copying /builder/dl/ubi-utils_2.1.5-1_aarch64_cortex-a53.ipk.
Installing ubox (2022-08-13-4c7b720b-2) to root...
Copying /builder/dl/ubox_2022-08-13-4c7b720b-2_aarch64_cortex-a53.ipk.
Installing fstools (2023-02-28-bfe882d5-1) to root...
Copying /builder/dl/fstools_2023-02-28-bfe882d5-1_aarch64_cortex-a53.ipk.
Installing fwtool (2019-11-12-8f7fe925-1) to root...
Copying /builder/dl/fwtool_2019-11-12-8f7fe925-1_aarch64_cortex-a53.ipk.
Installing busybox (1.36.1-1) to root...
Copying /builder/dl/busybox_1.36.1-1_aarch64_cortex-a53.ipk.
Package ca-bundle (20230311-1) installed in root is up to date.
Installing dnsmasq (2.90-2) to root...
Copying /builder/dl/dnsmasq_2.90-2_aarch64_cortex-a53.ipk.
Installing dropbear (2022.82-6) to root...
Copying /builder/dl/dropbear_2022.82-6_aarch64_cortex-a53.ipk.
Installing firewall4 (2023-09-01-598d9fbb-1) to root...
Copying /builder/dl/firewall4_2023-09-01-598d9fbb-1_aarch64_cortex-a53.ipk.
Installing libucode20230711 (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/libucode20230711_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Installing ucode (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Installing kmod-nfnetlink (5.15.150-1) to root...
Copying /builder/dl/kmod-nfnetlink_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-reject (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-reject_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-reject6 (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-reject6_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-conntrack (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-conntrack_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-conntrack6 (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-conntrack6_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-nat (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-nat_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-log (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-log_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-log6 (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-log6_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-hash (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-hash_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-crc32c (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-crc32c_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-lib-crc32c (5.15.150-1) to root...
Copying /builder/dl/kmod-lib-crc32c_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nft-core (5.15.150-1) to root...
Copying /builder/dl/kmod-nft-core_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nft-fib (5.15.150-1) to root...
Copying /builder/dl/kmod-nft-fib_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nf-flow (5.15.150-1) to root...
Copying /builder/dl/kmod-nf-flow_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nft-nat (5.15.150-1) to root...
Copying /builder/dl/kmod-nft-nat_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-nft-offload (5.15.150-1) to root...
Copying /builder/dl/kmod-nft-offload_5.15.150-1_aarch64_cortex-a53.ipk.
Installing libmnl0 (1.0.5-1) to root...
Copying /builder/dl/libmnl0_1.0.5-1_aarch64_cortex-a53.ipk.
Installing libnftnl11 (1.2.6-1) to root...
Copying /builder/dl/libnftnl11_1.2.6-1_aarch64_cortex-a53.ipk.
Installing jansson4 (2.14-3) to root...
Copying /builder/dl/jansson4_2.14-3_aarch64_cortex-a53.ipk.
Installing nftables-json (1.0.8-1) to root...
Copying /builder/dl/nftables-json_1.0.8-1_aarch64_cortex-a53.ipk.
Installing ucode-mod-fs (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode-mod-fs_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Installing ucode-mod-ubus (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode-mod-ubus_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Installing
 ucode-mod-uci (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode-mod-uci_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Package fstools (2023-02-28-bfe882d5-1) installed in root is up to date.
Package kernel (5.15.150-1-83850846aeb31a278a010941bbebf326) installed in root is up to date.
Installing kmod-crypto-hw-safexcel (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-hw-safexcel_5.15.150-1_aarch64_cortex-a53.ipk.
Installing eip197-mini-firmware (20230804-1) to root...
Copying /builder/dl/eip197-mini-firmware_20230804-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-null (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-null_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-aead (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-aead_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-manager (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-manager_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-authenc (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-authenc_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-des (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-des_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-md5 (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-md5_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-hmac (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-hmac_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-sha1 (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-sha1_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-sha256 (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-sha256_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-sha512 (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-sha512_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-gpio-button-hotplug (5.15.150-3) to root...
Copying /builder/dl/kmod-gpio-button-hotplug_5.15.150-3_aarch64_cortex-a53.ipk.
Installing kmod-leds-gpio (5.15.150-1) to root...
Copying /builder/dl/kmod-leds-gpio_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-mt7915e (5.15.150+2023-09-11-f1e1e67d-1) to root...
Copying /builder/dl/kmod-mt7915e_5.15.150+2023-09-11-f1e1e67d-1_aarch64_cortex-a53.ipk.
Installing iw (5.19-1) to root...
Copying /builder/dl/iw_5.19-1_aarch64_cortex-a53.ipk.
Installing iwinfo (2023-07-01-ca79f641-1) to root...
Copying /builder/dl/iwinfo_2023-07-01-ca79f641-1_aarch64_cortex-a53.ipk.
Installing wireless-regdb (2024.05.08-1) to root...
Copying /builder/dl/wireless-regdb_2024.05.08-1_all.ipk.
Installing kmod-cfg80211 (5.15.150+6.1.24-3) to root...
Copying /builder/dl/kmod-cfg80211_5.15.150+6.1.24-3_aarch64_cortex-a53.ipk.
Installing kmod-crypto-cmac (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-cmac_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-rng (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-rng_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-seqiv (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-seqiv_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-ctr (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-ctr_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-ccm (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-ccm_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-gf128 (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-gf128_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-ghash (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-ghash_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-crypto-gcm (5.15.150-1) to root...
Copying /builder/dl/kmod-crypto-gcm_5.15.150-1_aarch64_cortex-a53.ipk.
Installing hostapd-common (2023-09-08-e5ccbfc6-6) to root...
Copying /builder/dl/hostapd-common_2023-09-08-e5ccbfc6-6_aarch64_cortex-a53.ipk.
Installing kmod-mac80211 (5.15.150+6.1.24-3) to root...
Copying /builder/dl/kmod-mac80211_5.15.150+6.1.24-3_aarch64_cortex-a53.ipk.
Installing kmod-mt76-core (5.15.150+2023-09-11-f1e1e67d-1) to root...
Copying /builder/dl/kmod-mt76-core_5.15.150+2023-09-11-f1e1e67d-1_aa
rch64_cortex-a53.ipk.
Installing kmod-mt76-connac (5.15.150+2023-09-11-f1e1e67d-1) to root...
Copying /builder/dl/kmod-mt76-connac_5.15.150+2023-09-11-f1e1e67d-1_aarch64_cortex-a53.ipk.
Installing kmod-hwmon-core (5.15.150-1) to root...
Copying /builder/dl/kmod-hwmon-core_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-thermal (5.15.150-1) to root...
Copying /builder/dl/kmod-thermal_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-mt7981-firmware (5.15.150+2023-09-11-f1e1e67d-1) to root...
Copying /builder/dl/kmod-mt7981-firmware_5.15.150+2023-09-11-f1e1e67d-1_aarch64_cortex-a53.ipk.
Package kmod-nft-offload (5.15.150-1) installed in root is up to date.
Installing kmod-phy-aquantia (5.15.150-1) to root...
Copying /builder/dl/kmod-phy-aquantia_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-libphy (5.15.150-1) to root...
Copying /builder/dl/kmod-libphy_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-lib-crc-ccitt (5.15.150-1) to root...
Copying /builder/dl/kmod-lib-crc-ccitt_5.15.150-1_aarch64_cortex-a53.ipk.
Package libc (1.2.4-4) installed in root is up to date.
Package libgcc1 (12.3.0-4) installed in root is up to date.
Installing libustream-mbedtls20201210 (2023-02-25-498f6e26-1) to root...
Copying /builder/dl/libustream-mbedtls20201210_2023-02-25-498f6e26-1_aarch64_cortex-a53.ipk.
Installing logd (2022-08-13-4c7b720b-2) to root...
Copying /builder/dl/logd_2022-08-13-4c7b720b-2_aarch64_cortex-a53.ipk.
Installing mt7981-wo-firmware (20230804-1) to root...
Copying /builder/dl/mt7981-wo-firmware_20230804-1_aarch64_cortex-a53.ipk.
Installing mtd (26) to root...
Copying /builder/dl/mtd_26_aarch64_cortex-a53.ipk.
Package netifd (2024-01-04-c18cc79d-2) installed in root is up to date.
Package nftables-json (1.0.8-1) installed in root is up to date.
Installing odhcp6c (2023-05-12-bcd28363-20) to root...
Copying /builder/dl/odhcp6c_2023-05-12-bcd28363-20_aarch64_cortex-a53.ipk.
Installing odhcpd-ipv6only (2023-10-24-d8118f6e-1) to root...
Copying /builder/dl/odhcpd-ipv6only_2023-10-24-d8118f6e-1_aarch64_cortex-a53.ipk.
Installing opkg (2022-02-24-d038e5b6-2) to root...
Copying /builder/dl/opkg_2022-02-24-d038e5b6-2_aarch64_cortex-a53.ipk.
Installing libuclient20201210 (2023-04-13-007d9454-1) to root...
Copying /builder/dl/libuclient20201210_2023-04-13-007d9454-1_aarch64_cortex-a53.ipk.
Installing uclient-fetch (2023-04-13-007d9454-1) to root...
Copying /builder/dl/uclient-fetch_2023-04-13-007d9454-1_aarch64_cortex-a53.ipk.
Installing libpthread (1.2.4-4) to root...
Copying /builder/dl/libpthread_1.2.4-4_aarch64_cortex-a53.ipk.
Installing ppp (2.4.9.git-2021-01-04-4) to root...
Copying /builder/dl/ppp_2.4.9.git-2021-01-04-4_aarch64_cortex-a53.ipk.
Installing kmod-slhc (5.15.150-1) to root...
Copying /builder/dl/kmod-slhc_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-ppp (5.15.150-1) to root...
Copying /builder/dl/kmod-ppp_5.15.150-1_aarch64_cortex-a53.ipk.
Installing ppp-mod-pppoe (2.4.9.git-2021-01-04-4) to root...
Copying /builder/dl/ppp-mod-pppoe_2.4.9.git-2021-01-04-4_aarch64_cortex-a53.ipk.
Installing kmod-pppox (5.15.150-1) to root...
Copying /builder/dl/kmod-pppox_5.15.150-1_aarch64_cortex-a53.ipk.
Installing kmod-pppoe (5.15.150-1) to root...
Copying /builder/dl/kmod-pppoe_5.15.150-1_aarch64_cortex-a53.ipk.
Installing procd (2023-06-25-2db83655-2) to root...
Copying /builder/dl/procd_2023-06-25-2db83655-2_aarch64_cortex-a53.ipk.
Installing libjson-script20230523 (2023-05-23-75a3b870-1) to root...
Copying /builder/dl/libjson-script20230523_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk.
Installing procd-seccomp (2023-06-25-2db83655-2) to root...
Copying /builder/dl/procd-seccomp_2023-06-25-2db83655-2_aarch64_cortex-a53.ipk.
Installing procd-ujail (2023-06-25-2db83655-2) to root...
Copying /builder/dl/procd-ujail_2023-06-25-2db83655-2_aarch64_cortex-a53.ipk.
Installing uboot-envtools (2023.04-1) to root...
Copying /builder/dl/uboot-envtools_2023.04-1_aarch64_cortex-a53.ipk.
Installing uci (2023-08-10-5781664d-1) to root...
Copying /builder/dl/uci_2023-08-10-5781664d-1_aarch64_cortex-a53.ipk.
Package uclient-
fetch (2023-04-13-007d9454-1) installed in root is up to date.
Installing urandom-seed (3) to root...
Copying /builder/dl/urandom-seed_3_aarch64_cortex-a53.ipk.
Installing getrandom (2022-08-13-4c7b720b-2) to root...
Copying /builder/dl/getrandom_2022-08-13-4c7b720b-2_aarch64_cortex-a53.ipk.
Installing urngd (2023-11-01-44365eb1-1) to root...
Copying /builder/dl/urngd_2023-11-01-44365eb1-1_aarch64_cortex-a53.ipk.
Installing wpad-basic-mbedtls (2023-09-08-e5ccbfc6-6) to root...
Copying /builder/dl/wpad-basic-mbedtls_2023-09-08-e5ccbfc6-6_aarch64_cortex-a53.ipk.
Installing ucode-mod-nl80211 (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode-mod-nl80211_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Installing ucode-mod-rtnl (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode-mod-rtnl_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Installing ucode-mod-uloop (2023-11-07-a6e75e02-1) to root...
Copying /builder/dl/ucode-mod-uloop_2023-11-07-a6e75e02-1_aarch64_cortex-a53.ipk.
Configuring libubox20230523.
Configuring libuci20130104.
Configuring liblua5.1.5.
Configuring libuci-lua.
Configuring libnl-tiny1.
Configuring libubus20230605.
Configuring libiwinfo-data.
Configuring libiwinfo20230701.
Configuring iwinfo.
Configuring kmod-crypto-gf128.
Configuring libuclient20201210.
Configuring uclient-fetch.
Configuring libpthread.
Configuring opkg.
Configuring hostapd-common.
Configuring libjson-c5.
Configuring libucode20230711.
Configuring ucode.
Configuring ucode-mod-fs.
Configuring ucode-mod-nl80211.
Configuring ucode-mod-rtnl.
Configuring libblobmsg-json20230523.
Configuring ucode-mod-ubus.
Configuring ucode-mod-uloop.
Configuring libmbedtls12.
Configuring wpad-basic-mbedtls.
Configuring ubusd.
Configuring ubus.
Configuring iw.
Configuring kmod-crypto-hash.
Configuring kmod-crypto-null.
Configuring kmod-crypto-aead.
Configuring kmod-crypto-manager.
Configuring rpcd.
Configuring busybox.
Configuring kmod-crypto-hmac.
Configuring kmod-crypto-sha512.
Configuring kmod-crypto-rng.
Configuring kmod-crypto-seqiv.
Configuring kmod-crypto-ctr.
Configuring kmod-nfnetlink.
Configuring kmod-nf-reject.
Configuring kmod-nf-reject6.
Configuring kmod-nf-conntrack.
Configuring kmod-nf-conntrack6.
Configuring kmod-nf-nat.
Configuring kmod-nf-log.
Configuring kmod-nf-log6.
Configuring kmod-crypto-crc32c.
Configuring kmod-lib-crc32c.
Configuring kmod-nft-core.
Configuring kmod-nft-fib.
Configuring libubus-lua.
Configuring kmod-crypto-md5.
Configuring kmod-nf-flow.
Configuring kmod-lib-crc-ccitt.
Configuring getrandom.
Configuring kmod-libphy.
Configuring kmod-hwmon-core.
Configuring kmod-phy-aquantia.
Configuring kmod-slhc.
Configuring kmod-ppp.
Configuring kmod-pppox.
Configuring kmod-pppoe.
Configuring procd-ujail.
Configuring jshn.
Configuring netifd.
Configuring jsonfilter.
Configuring usign.
Configuring openwrt-keyring.
Configuring ubi-utils.
Configuring ubox.
Configuring fstools.
Configuring fwtool.
Configuring base-files.
Configuring ucode-mod-uci.
Configuring libustream-mbedtls20201210.
Configuring kmod-nft-nat.
Configuring kmod-nft-offload.
Configuring libmnl0.
Configuring libnftnl11.
Configuring jansson4.
Configuring nftables-json.
Configuring firewall4.
Configuring uboot-envtools.
Configuring dnsmasq.
Configuring libjson-script20230523.
Configuring procd.
Configuring kmod-crypto-sha256.
Configuring lua.
Configuring lua-cjson.
Configuring wireless-regdb.
Configuring kmod-cfg80211.
Configuring kmod-crypto-cmac.
Configuring kmod-crypto-ccm.
Configuring kmod-crypto-ghash.
Configuring kmod-crypto-gcm.
Configuring kmod-mac80211.
Configuring kmod-mt76-core.
Configuring kmod-mt76-connac.
Configuring kmod-thermal.
Configuring odhcp6c.
Configuring uci.
Configuring rpcd-mod-iwinfo.
Configuring netjson-monitoring.
Configuring libnghttp2-14.
Configuring ca-bundle.
Configuring libcurl4.
Configuring curl.
Configuring luafilesystem.
Configuring luci-lib-nixio.
Configuring ca-certificates.
Configuring openwisp-config.
Configuring openwisp-monitoring.
Configuring dropbear.
Configuring mtd.
Configuring odhcpd-ipv6only.
Configuring procd-seccomp.
Configuring eip197-mini-firmware.
Configuring kmod-crypto-authenc.
Configuring kmod-crypto-des.
Configuring kmod-crypto-sha1.
Configuring kmod-crypto-hw-safexcel.
Configuring kmod-mt7915e.
Configuring urandom-seed.
Configuring ppp.
Configuring kmod-leds-gpio.
Configuring kmod-gpio-button-hotplug.
Configuring logd.
Configuring mt7981-wo-firmware.
Configuring kmod-mt7981-firmware.
Configuring urngd.
Configuring ppp-mod-pppoe.

Finalizing root filesystem...
Enabling boot
Enabling bootcount
Enabling cron
Disabling dnsmasq
Enabling done
Enabling dropbear
Disabling firewall
Enabling gpio_switch
Enabling led
Enabling log
Enabling network
Disabling odhcpd
Enabling openwisp-monitoring
Enabling openwisp_config
Enabling packet_steering
Enabling rpcd
Enabling sysctl
Enabling sysfixtime
Enabling sysntpd
Enabling system
Enabling umount
Enabling urandom_seed
Enabling urngd
Enabling wpad

Building images...
Pseudo file "dev" exists in source filesystem "/builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/dev".
Ignoring, exclude it (-e/-ef) to override.
Parallel mksquashfs: Using 32 processors
Creating 4.0 filesystem on /builder/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/root.squashfs, block size 262144.

[|                                                             ]    0/1047   0%

[=============================================================|] 1047/1047 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments,
	no xattrs, compressed ids
	duplicates are removed
Filesystem size 4496.04 Kbytes (4.39 Mbytes)
	21.94% of uncompressed filesystem size (20489.98 Kbytes)
Inode table size 11034 bytes (10.78 Kbytes)
	21.61% of uncompressed inode table size (51051 bytes)
Directory table size 15034 bytes (14.68 Kbytes)
	44.63% of uncompressed directory table size (33687 bytes)
Number of duplicate files found 144
Number of inodes 1452
Number of files 1019
Number of fragments 49
Number of symbolic links 339
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 93
Number of hard-links 0
Number of ids (unique uids + gids) 1
Number of uids 1
	unknown (0)
Number of gids 1
	unknown (0)
7418+1 records in
7418+1 records out
3798296 bytes (3.8 MB, 3.6 MiB) copied, 0.0179334 s, 212 MB/s
28+1 records in
29+0 records out
3801088 bytes (3.8 MB, 3.6 MiB) copied, 0.00360254 s, 1.1 GB/s
8992+1 records in
8992+1 records out
4603940 bytes (4.6 MB, 4.4 MiB) copied, 0.0187228 s, 246 MB/s
padding image to 00805000
padding image to 00806000
padding image to 00808000
padding image to 00810000
padding image to 00820000
padding image to 00840000

Calculating checksums...

section_end:1716752547:step_script
e[0Ksection_start:1716752547:after_script
e[0Ke[0Ke[36;1mRunning after_scripte[0;me[0;m
e[32;1mRunning after script...e[0;m
e[32;1m$ if [[ -d /builder/bin ]]; then mv /builder/bin .; fie[0;m
e[32;1m$ if [[ -d /builder/dl ]]; then mv /builder/dl .; fie[0;m

section_end:1716752547:after_script
e[0Ksection_start:1716752547:archive_cache
e[0Ke[0Ke[36;1mSaving cache for successful jobe[0;me[0;m
e[32;1mCreating cache 23.05.3-mediatek-1-protected...e[0;m
dl/: found 148 matching artifact files and directoriese[0;m 
Uploading cache.zip to https://minio.faked.org/gitlab-runner/cache/project/130/23.05.3-mediatek-1-protectede[0;m 
e[32;1mCreated cachee[0;m

section_end:1716752549:archive_cache
e[0Ksection_start:1716752549:upload_artifacts_on_success
e[0Ke[0Ke[36;1mUploading artifacts for successful jobe[0;me[0;m
e[32;1mUploading artifacts...e[0;m
bin/: found 8 matching artifact files and directoriese[0;m 
[...]

As you can see, there's not much custom stuff done, just downloading some packages and putting them into the packages folder.
(I have to move ./dl and ./packages into the build context and back out for caching and artifacts to work.)

On a sidenote, the official profiles.json also doesn't list luci or uhttpd, so i'm wondering how/where/when those make it into the images?

Imagebuilder:

make image PROFILE="cudy_wr3000-v1" PACKAGES="luci-ssl luci-app-opkg"

From source:

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull
git checkout v23.05.3
make defconfig
make menuconfig
make -j$(nproc) download
make -j$(nproc) V=s
cd ..

Luci->Collections->luci *

Yes, i am aware how to build from source and use make menuconfig, and as shown above also how to add individual packages via imagebuilder arguments.

But as i want to build images "exactly like the official ones" (which i did from source by downloading the config.buildinfo for the target, patching it with my additional packages and then running make defconfig), i want to do the same with imagebuilder.

So the question was: what's the equivalent to config.buildinfo for building from source for when i'm using imagebuilder?
I don't want to manually curate the list of packages that would be included in the official release image, i'd prefer to download something like the config.buildinfo and have imagebuilder use that as the source for what packages should be included (plus my extra packages defined in PACKAGES).
What/Where is the list of packages that added to the images built by imagebuilder, in addition to the minimal+device set, so that the package that gets built contains luci/etc. just like the official release images?

Or is imagebuilder not meant to customize "just like the release" images, but rather always work with a minimal set and only add what's needed? Because then i'd have to go back to building from source - which would be a bit of a waste of good resources, considering that running imagebuilder only takes 30 seconds to build an image.

If you run imagebuilder like this:

make image PROFILE="cudy_wr3000-v1" PACKAGES="luci-ssl luci-app-opkg"`

the built image will be exactly the same as from the official download.

I see that firmware-selector includes luci in the list of packages, but where does firmware-selector get the info from that it's supposed to include luci? there has to be a source for that somewhere.

Again, my main goal is to not manually maintain a list of packages that the official images include by default, and while adding luci manually now may result in the same packages being included in the image, for some new version this may change. So i want to avoid any technical debt caused by manually listing packages.

Okay, i was just told that firmware-selector gets its list of package(s) from here: https://firmware-selector.openwrt.org/config.js

I think i'll go back to building from source then :wink:

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