virtme icon indicating copy to clipboard operation
virtme copied to clipboard

`virtme-run --mods=auto` is not working with kernels >=6.2

Open matttbe opened this issue 3 years ago • 4 comments

virtme-prep-kdir-mods: support kernel 6.2

Thank you for having created and maintained this very handy tool!

Since the kernel commit https://github.com/torvalds/linux/commit/f65a486821cf ("kbuild: change module.order to list *.o instead of *.ko") that is now in Linus tree in preparation of the future v6.2, module.order file lists .o files instead of .ko ones.

virtme-prep-kdir-mods reads module.order file but it needs to create symlinks for the .ko files, not the .o ones.

matttbe avatar Dec 22 '22 14:12 matttbe

@matttbe thanks for this patch - I was having the same problem today so just tested your patch and it worked perfectly. Not sure if this is best practice, but I had to manually delete the .virtme_mods folder in my main linux directory to force the modules to show up.

dbrouwer3563 avatar Jan 04 '23 03:01 dbrouwer3563

@dbrouwer3563 thank you for having validated this patch!

Not sure if this is best practice, but I had to manually delete the .virtme_mods folder in my main linux directory to force the modules to show up.

I don't remember I had to do that but when trying to understand the issue, I might have deleted the folder when it was filled in with .o files. Hopefully this fix can get merged before too many users switch to v6.2 and populate the directory with wrong files :-) (cc @amluto)

matttbe avatar Jan 04 '23 09:01 matttbe

@amluto can you please take a look at this PR? Thanks!

marcosps avatar Jan 16 '23 12:01 marcosps

This has been merged/fixed in https://github.com/arighi/virtme

NOTE: we are trying to catch up with all the pending PR in this temporary fork. In the future we may merge everything back here if this project become active again, but for now please consider to follow also the development of arighi/virtme.

arighi avatar Apr 07 '23 14:04 arighi