Thank you very much! This is the correct solution:
- replace
sha256withsha512 - add flags
--check=crc32 --lzma2=dict=1MiBto 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?