I also commented out the signature check option, to avoid errors during building process: sed -i 's/option check_signature/# option check_signature/g' repositories.conf
By downloading the public key, and placing it on the proper APK keys directory in the live router, or you can include it as a custom file into the build itself with the full toolchain or the imagebuilder.
@hnyman do you know if the custom directory "openwrt-imagebuilder.../files" is the right place to insert the key file? something like this?
# from main directory where make file is located i.e. "openwrt-imagebuilder..."
mkdir -p files
cd files
wget https://github.com/4IceG/Modem-extras/raw/main/myrepo/IceG-repo.pub -O files/IceG-repo.pub
I tryed to put the key into "build_dir/target-mipsel_24kc_musl/root-ramips/etc/opkg/keys" but during building process the folder is recreated and the "IceG-repo.pub" is deleted
I got to my computer after a few sickdays, and tested with an arbitrary 24.10 imagebuilder and this works just as expected:
Downloading https://downloads.openwrt.org/releases/24.10-SNAPSHOT/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /tmp/koe/openwrt-imagebuilder-24.10-SNAPSHOT-mediatek-filogic.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../../../tmp/koe/openwrt-imagebuilder-24.10-SNAPSHOT-mediatek-filogic.Linux-x86_64/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/24.10-SNAPSHOT/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
Downloading https://github.com/4IceG/Modem-extras/raw/main/myrepo/Packages.gz
Updated list of available packages in /tmp/koe/openwrt-imagebuilder-24.10-SNAPSHOT-mediatek-filogic.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../../../tmp/koe/openwrt-imagebuilder-24.10-SNAPSHOT-mediatek-filogic.Linux-x86_64/dl/IceG_repo
Downloading https://github.com/4IceG/Modem-extras/raw/main/myrepo/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /tmp/koe/openwrt-imagebuilder-24.10-SNAPSHOT-mediatek-filogic.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../../../tmp/koe/openwrt-imagebuilder-24.10-SNAPSHOT-mediatek-filogic.Linux-x86_64/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check passed.
The only thing that I did more than your experiments, was that I (apparently properly) renamed the key file to match the fingerprint that was mentioned in the .sig file signed with it (as all the other key files in keys/ were named as fingerprints...)
untrusted comment: signed by key 0a0f903b916f6cb5
RWQKD5A7kW9stWc0w2BD6obyFxcoR7aY+kPLhzLUpG+OFrsBIx6rx9lxBD9QdRZBZP09HdEs75OE5e4FTIDz+vI+Vkyp/AOPPQ4=
mv IceG-repo.pub 0a0f903b916f6cb5
perus@ub2410:/openwrt-imagebuilder-24.10...$ ls keys
0a0f903b916f6cb5 a09286c7021b883f d310c6f2833e97f7
src/gz openwrt_telephony https://downloads.openwrt.org/releases/24.10-SNAPSHOT/packages/aarch64_cortex-a53/telephony
src/gz IceG_repo https://github.com/4IceG/Modem-extras/raw/main/myrepo
## This is the local package repository, do not remove!
I haven't tested any further, but might just work normally.