aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-17 21:17:00 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-19 12:09:33 +0700
commit79ce6ecba2494b968c109d03656f964ce2435ff8 (patch)
tree0ceffc048e58038607b2e15ce96686d97d62b9d5 /system
parent4f8f0413e6d07b5328555e1648fa7c9ed48382ae (diff)
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')
-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 fe08d76bd6a6..81836a27dc3d 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 73123ad8cf6a..c08dbe91a6d5 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