aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/zfs-on-linux/README4
-rw-r--r--system/zfs-on-linux/zfs-on-linux.SlackBuild8
2 files changed, 6 insertions, 6 deletions
diff --git a/system/zfs-on-linux/README b/system/zfs-on-linux/README
index fe08d76bd6a6d..81836a27dc3d0 100644
--- a/system/zfs-on-linux/README
+++ b/system/zfs-on-linux/README
@@ -6,7 +6,7 @@ NOTE: You'll need the kernel source code to be able to compile this.
This package is kernel dependent, so you'll need to recompile it for
every new kernel you choose to run.
-Please use KERN environment variable if target kernel version differs
-from that's of the build machine, e.g. `export KERN=5.12.14`.
+Please use KERNEL environment variable if target kernel version differs
+from that's of the build machine, e.g. `export KERNEL=5.15.19`.
NOTE: you should run ZFS on 64-bit systems.
diff --git a/system/zfs-on-linux/zfs-on-linux.SlackBuild b/system/zfs-on-linux/zfs-on-linux.SlackBuild
index 73123ad8cf6a4..c08dbe91a6d5c 100644
--- a/system/zfs-on-linux/zfs-on-linux.SlackBuild
+++ b/system/zfs-on-linux/zfs-on-linux.SlackBuild
@@ -36,8 +36,8 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-KERN=${KERN:-"$(uname -r)"}
-PKGVER="$(printf %s "${VERSION}_${KERN}" | tr - _)"
+KERNEL=${KERNEL:-"$(uname -r)"}
+PKGVER="$(printf %s "${VERSION}_${KERNEL}" | tr - _)"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -100,8 +100,8 @@ CFLAGS="$SLKCFLAGS" \
--includedir=/usr/include \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-linux="/lib/modules/${KERN}/source" \
- --with-linux-obj="/lib/modules/${KERN}/source" \
+ --with-linux="/lib/modules/${KERNEL}/source" \
+ --with-linux-obj="/lib/modules/${KERNEL}/source" \
--with-udevdir=/lib/udev \
--enable-static=no \
--build=$ARCH-slackware-linux