Page MenuHomeVyOS Platform

Current vyos-build for crux does not include wireguard.ko
Closed, ResolvedPublicBUG

Description

I have built the latest LTS image with docker with no appearent problems on the process.

However after installing on a host, I have seen that wireguard.ko is missing. (Should've checked the squashfs earlier)

After 5 different build tries (1 deleted, 4 are available; where 1 is done on a fresh Debian Jessie install) and checking an earlier build I've done on May 10th (that had the kmod), I concluded that somewhere between May 10 and Today, a change on the vyos-build repository is blocking WireGuard kernel module being installed. (wireguard-tools is installed fine).

Details

Difficulty level
Unknown (require assessment)
Version
1.2.5
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

While I was checking my old build, I have seen this on /live/filesystem.packages:

wireguard	0.0.20191219-1
wireguard-modules	0.0.20191219-1
wireguard-tools	0.0.20191219-1

While on the current builds I've done, I see this:

wireguard	0.0.20191219-1
wireguard-dkms	0.0.20191219-1
wireguard-tools	0.0.20191219-1

I guess this change is related to the commit 698319c

Seeing that dkms is also available on the build, I have tested if kernel headers were missing and sure enough:

vyos@CoreRoute# dkms status
wireguard, 0.0.20191219: added
[edit]
vyos@CoreRoute# sudo dkms autoinstall
Error! Your kernel headers for kernel 4.19.114-amd64-vyos cannot be found.
Please install the linux-headers-4.19.114-amd64-vyos package,
or use the --kernelsourcedir option to tell DKMS where it's located
[edit]
vyos@CoreRoute#

I'll rebuild with a log output to post here.

Did a rebuild and found the silent error:

Setting up wireguard-dkms (0.0.20191219-1) ...
Loading new wireguard-0.0.20191219 DKMS files...
First Installation: checking all kernels...
It is likely that 3.16.0-11-amd64 belongs to a chroot's host
Building only for 4.19.114-amd64-vyos
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

Seems like linux-headers-4.19.114-amd64-vyos never gets installed, thus dkms cannot build.

c-po changed the task status from Open to In progress.Jul 11 2020, 5:58 PM
c-po claimed this task.

@linuxgemini we do not support DKMS.

When importing the old Kernel Pipeline the use .gitignore file prevented a patch from beeing imported as it matched the entire wireguard directory. With this in place we did not build the wireguard.ko kernel module but failed back to DKMS which we do not support.

Required packages are rebuilding and deploying the binaries to the repository, you can try again in an hour.

Understood, will re-check and close the report once confirmed.

Can confirm that the image now contains wireguard.ko.

Marked as resolved.