From d85062b52f77f44ce924ed542211361512df943b Mon Sep 17 00:00:00 2001
From: John Cabaj <john.cabaj@canonical.com>
Date: Tue, 11 Mar 2025 13:52:58 -0500
Subject: [PATCH] Enable linux-experimental support

To build against advance kernels, --enable-linux-experimental
must be set

Last-Update: 2025-03-11
Signed-off-by: John Cabaj <john.cabaj@canonical.com>
---
 scripts/dkms.mkconf | 1 +
 1 file changed, 1 insertion(+)

--- a/scripts/dkms.mkconf
+++ b/scripts/dkms.mkconf
@@ -66,6 +66,7 @@
       fi
     }
   )
+  --enable-linux-experimental
 "
 POST_BUILD="scripts/dkms.postbuild
   -n \${PACKAGE_NAME}
--- a/module/os/linux/zfs/zfs_ioctl_os.c
+++ b/module/os/linux/zfs/zfs_ioctl_os.c
@@ -305,8 +305,9 @@
 	    ZFS_META_VERSION, ZFS_META_RELEASE, ZFS_DEBUG_STR,
 	    SPA_VERSION_STRING, ZPL_VERSION_STRING);
 #ifdef HAVE_LINUX_EXPERIMENTAL
-	printk(KERN_NOTICE "ZFS: Using ZFS with kernel %s is EXPERIMENTAL and "
-	    "SERIOUS DATA LOSS may occur!\n", utsname()->release);
+	printk(KERN_NOTICE "ZFS: Using ZFS with kernel %s is not expressly "
+		"supported by OpenZFS. Support for this version is maintained by Canonical "
+		"for the purposes of the %s kernel", utsname()->release);
 	printk(KERN_NOTICE "ZFS: Please report your results at: "
 	    "https://github.com/openzfs/zfs/issues/new\n");
 #endif
