After upgrade to F42, I cannot load VirtualBox drivers signed modules in the kernel (SecureBoot)

Thank you very much! This is the correct solution:

  1. replace sha256 with sha512
  2. add flags --check=crc32 --lzma2=dict=1MiB to xz compress command.

I have simply modified following two lines in my script:

/usr/src/kernels/$(uname -r)/scripts/sign-file sha512 /root/module-sign/MOK.priv /root/module-sign/MOK.der  "${module_basename}"
          xz --compress --check=crc32 --lzma2=dict=1MiB -f ${module_basename}

and now it works like a charm!

I suppose that the RPM akmod-VirtualBox needs to be fixed in this way, correct? Pehaps the RPM akmods also?