Thanks for the feedback Massimiliano.

Attached you can find the v2 patch with the suggested modifications.

The code compiles in noble and resolute: I compiled it manually in both
```
afaina@ubuntu-resolute:~/dkms/apfs-dkms/BUILD$ ./genver.sh  
afaina@ubuntu-resolute:~/dkms/apfs-dkms/BUILD$ make -j16 
KERNELRELEASE=7.0.0-1-generic -C /lib/modules/7.0.0-1-generic/build 
M=/home/afaina/dkms/apfs-dkms/BUILD/
make: Entering directory '/usr/src/linux-headers-7.0.0-1-generic'
make[1]: Entering directory '/home/afaina/dkms/apfs-dkms/BUILD'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-13ubuntu3) 15.2.0
  You are using:           gcc (Ubuntu 15.2.0-12ubuntu1) 15.2.0
warning: pahole version differs from the one used to build the kernel
  The kernel was built with: 130
  You are using:             0
  CC [M]  btree.o
  CC [M]  compress.o
  CC [M]  dir.o
  CC [M]  extents.o
  CC [M]  file.o
  CC [M]  inode.o
  CC [M]  key.o
  CC [M]  libzbitmap.o
  CC [M]  lzfse/lzfse_decode.o
  CC [M]  lzfse/lzfse_decode_base.o
  CC [M]  lzfse/lzfse_fse.o
  CC [M]  lzfse/lzvn_decode_base.o
  CC [M]  message.o
  CC [M]  namei.o
  CC [M]  node.o
  CC [M]  object.o
  CC [M]  snapshot.o
  CC [M]  spaceman.o
  CC [M]  super.o
  CC [M]  symlink.o
  CC [M]  transaction.o
  CC [M]  unicode.o
  CC [M]  xattr.o
  CC [M]  xfield.o
  LD [M]  apfs.o
  MODPOST Module.symvers
  CC [M]  apfs.mod.o
  CC [M]  .module-common.o
  LD [M]  apfs.ko
  BTF [M] apfs.ko
Skipping BTF generation for apfs.ko due to unavailability of vmlinux
make[1]: Leaving directory '/home/afaina/dkms/apfs-dkms/BUILD'
make: Leaving directory '/usr/src/linux-headers-7.0.0-1-generic'
```

then installed it from the locally created deb package and the one built
in a personal PPA [
https://launchpad.net/~alessiofaina/+archive/ubuntu/dkms-build-tests ]

The package correctly installs on resolute from the deb or PPA in both resolute 
6.19.0-6-generic/7.0.0.1-generic
```
root@ubuntu-resolute:/home/afaina/dkms/apfs-dkms# dpkg -i 
./apfs-dkms_0.3.18-2ubuntu1_all.deb
Selecting previously unselected package apfs-dkms.
(Reading database ... 141982 files and directories currently installed.)
Preparing to unpack .../apfs-dkms_0.3.18-2ubuntu1_all.deb ...
Unpacking apfs-dkms (0.3.18-2ubuntu1) ...
Setting up apfs-dkms (0.3.18-2ubuntu1) ...
Loading new linux-apfs-rw/0.3.18 DKMS files...
Building for 6.19.0-6-generic and 7.0.0-1-generic

Building initial module linux-apfs-rw/0.3.18 for 6.19.0-6-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script... done.
Building module(s)... done.
Signing module /var/lib/dkms/linux-apfs-rw/0.3.18/build/apfs.ko
Installing /lib/modules/6.19.0-6-generic/updates/dkms/apfs.ko.zst
Running depmod... done.

Building initial module linux-apfs-rw/0.3.18 for 7.0.0-1-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script... done.
Building module(s)... done.
Signing module /var/lib/dkms/linux-apfs-rw/0.3.18/build/apfs.ko
Installing /lib/modules/7.0.0-1-generic/updates/dkms/apfs.ko
Running depmod... done.

root@ubuntu-resolute:~# uname -a
Linux ubuntu-resolute 7.0.0-1-generic #1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 23 
09:56:54 UTC 2026 x86_64 GNU/Linux
root@ubuntu-resolute:~# modprobe apfs
root@ubuntu-resolute:~# lsmod | grep apfs
apfs                  274432  0
root@ubuntu-resolute:~# rmmod apfs
root@ubuntu-resolute:~# 
```

And in noble 6.8.0-101-generic, 6.14.0-37-generic, 6.17.0-14-generic and can be 
loaded/unloaded.
```
root@ubuntu-noble:~# uname -a
Linux ubuntu-noble 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb  9 
10:15:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu-noble:~# modprobe apfs
root@ubuntu-noble:~# lsmod | grep apfs
apfs                  274432  0
libcrc32c              12288  3 apfs,btrfs,raid456
root@ubuntu-noble:~# rmmod apfs
root@ubuntu-noble:~#
```

Simple autopkgtest runs seems to be successful for bot 6.19.0
```
Installing /lib/modules/6.19.0-6-generic/updates/dkms/apfs.ko
Running depmod.... done.
I: Testing if linux-apfs-rw modules are correctly installed.
linux-apfs-rw/0.3.18, 6.19.0-6-generic, x86_64: installed
linux-apfs-rw/0.3.18/6.19.0-6-generic/x86_64/log/make.log
I: Summary:
I: PASS linux-apfs-rw/0.3.18 6.19.0-6-generic
autopkgtest [15:44:37]: test dkms-autopkgtest: -----------------------]
autopkgtest [15:44:38]: test dkms-autopkgtest:  - - - - - - - - - - results - - 
- - - - - - - -
dkms-autopkgtest     PASS (superficial)
autopkgtest [15:44:38]: @@@@@@@@@@@@@@@@@@@@ summary
dkms-autopkgtest     PASS (superficial)
```
and 7.0.0.1
```
I: Testing if linux-apfs-rw modules are correctly installed.
linux-apfs-rw/0.3.18, 7.0.0-1-generic, x86_64: installed
linux-apfs-rw/0.3.18/7.0.0-1-generic/x86_64/log/make.log
I: Summary:
I: PASS linux-apfs-rw/0.3.18 7.0.0-1-generic
autopkgtest [15:44:37]: test dkms-autopkgtest: -----------------------]
autopkgtest [15:44:38]: test dkms-autopkgtest:  - - - - - - - - - - results - - 
- - - - - - - -
dkms-autopkgtest     PASS (superficial)
autopkgtest [15:44:38]: @@@@@@@@@@@@@@@@@@@@ summary
dkms-autopkgtest     PASS (superficial)

```

I have no means of testing the modules itself in terms of
functionalities.

** Patch added: "dkms_patch_v2.patch"
   
https://bugs.launchpad.net/ubuntu/+source/linux-apfs-rw/+bug/2142837/+attachment/5948922/+files/dkms_patch_v2.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142837

Title:
  Add support for kernel 7.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-apfs-rw/+bug/2142837/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to