Build 1.2.8 iso with local packages

I have tried several times, but since the package/linux-kernel/patches/kernel is not for 4.19.195 which is default on 1.2.8. It failed at kernel compiling if I use 4.19.195.
If I switch kernel to 4.19.139 which is required by patches. When building iso, script will still download 4.19.195 from repo.

How can I add a kernel module which I need for iptables. Thanks.

Hi @debiansid, check out Build VyOS — VyOS 1.3.x (equuleus) documentation

I am sure I followed every step over there.

kernel patch is for 4.19.139, so patching will fail if I try to build 4.19.195.
once I build deb of 4.19.139 and put into /vyos-build/packages/, building iso will still try to download 4.19.195 despite of that I set it to 4.19.139 in /data/defaults.json.

so it will never success . please help me.

Hi debiansid!

You need to manually update the data/defaults.json file with the kernel version you have built, or else it tries to install both your custom kernel and the one defined in data/defaults.json

Yeah. I changed version in that file already

You also need to rebuild all packages for your new kernel version like QAT, Intel drivers, Accel-PPP, WireGuard and place them in the packages folder.

once I put any local deb into packages,

W: GPG error: http://dev.packages.vyos.net crux InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 32C249BD0DF04B5C
W: GPG error: https://archive.repo.saltproject.io jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E08A149DE57BFBE
W: GPG error: http://aws.deb.vyos.io jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A07310D369055D5A
W: GPG error: http://dev.packages.vyos.net crux InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 32C249BD0DF04B5C
Reading package lists...
Building dependency tree...
  MarkInstall apt-utils [ amd64 ] < none -> 1.0.9.8.7 > ( admin ) FU=1
  Installing libapt-inst1.5 as Depends of apt-utils
    MarkInstall libapt-inst1.5 [ amd64 ] < none -> 1.0.9.8.7 > ( libs ) FU=0
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following extra packages will be installed:
  libapt-inst1.5
The following NEW packages will be installed:
  apt-utils libapt-inst1.5
0 upgraded, 2 newly installed, 0 to remove and 34 not upgraded.
Need to get 0 B/538 kB of archives.
After this operation, 2172 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libapt-inst1.5 apt-utils
E: There are problems and -y was used without --force-yes
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...

if no local packages , it will build iso successfully.

Can anybody help me on this?