summaryrefslogtreecommitdiffstats
path: root/system/zfs-on-linux
diff options
context:
space:
mode:
author Andrew Clemons2022-02-17 09:17:00 +0100
committer Willy Sudiarto Raharjo2022-02-19 06:09:33 +0100
commit79ce6ecba2494b968c109d03656f964ce2435ff8 (patch)
tree0ceffc048e58038607b2e15ce96686d97d62b9d5 /system/zfs-on-linux
parent4f8f0413e6d07b5328555e1648fa7c9ed48382ae (diff)
downloadslackbuilds-79ce6ecba2494b968c109d03656f964ce2435ff8.tar.gz
system/zfs-on-linux: Use KERNEL env var.
The standard ENV var for the kernel version to use is KERNEL on slackbuilds.org. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/zfs-on-linux')
-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 fe08d76bd6..81836a27dc 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 73123ad8cf..c08dbe91a6 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