toby63 / shiftfs-dkms

shiftfs kernel module via dkms
GNU General Public License v2.0
38 stars 10 forks source link

Feature Request: Support for Kernel versions 5.17 and 5.18 #18

Closed aledbf closed 2 years ago

aledbf commented 2 years ago

Thanks!

toby63 commented 2 years ago

I might take a look at it in the coming days.

Upstream has indeed a new version available for 5.17, see ubuntu kernel repo. I don't know whether it also works for 5.18, but you could give it a try.

In case you want to try the new version before I upload new scripts, follow these steps: Note: Use at your own risk.

  1. Remove the old version (see Readme for example).
  2. Download the scripts for 5.16 (see Step 1 in Readme).
  3. Replace the shiftfs.c file with the one here, you can simply run:
    • rm shiftfs.c
    • wget 'https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/plain/fs/shiftfs.c?h=hwe-5.17&id=dab801bab38fe568f12f79eacf10362b9c9e25f9'
    • mv 'shiftfs.c?h=hwe-5.17&id=dab801bab38fe568f12f79eacf10362b9c9e25f9' shiftfs.c
  4. Adjust the version.txt file to k517.
  5. Change the following line in dkms.conf: BUILD_EXCLUSIVE_KERNEL="^5.(15|16).*" to BUILD_EXCLUSIVE_KERNEL="^5.(17|18).*".
  6. Compile and install shiftfs (see Step 3 in Readme).
toby63 commented 2 years ago

Fixed with ef6f72a12389c416038f2cbb2db8c429dc5aaaa4.

I did not test the new branch with kernel version 5.18.x though, so feel free to file another report when 5.18 is stable.