summaryrefslogtreecommitdiffstats
path: root/upslak.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-03-17 20:55:08 +0100
committer Eric Hameleers <alien@slackware.com>2019-03-17 20:55:08 +0100
commitfd87a9d5bc3fe165d366059a648eadfbe30baf49 (patch)
tree1cc57659a1584450372dccbcc6d264c7c484d192 /upslak.sh
parent96ac60a74424a09bf64e453ae4ca60c96a04d3dd (diff)
downloadliveslak-fd87a9d5bc3fe165d366059a648eadfbe30baf49.tar.gz
liveslak-fd87a9d5bc3fe165d366059a648eadfbe30baf49.tar.xz
upslak.sh: do not presume that people build overlayfs as a module
The script will now only fail if you have zero modules in your tree. I presume (!) that this corner case will never occur. In any case, I will not support it.
Diffstat (limited to 'upslak.sh')
-rw-r--r--upslak.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/upslak.sh b/upslak.sh
index 128970a..f3ddb73 100644
--- a/upslak.sh
+++ b/upslak.sh
@@ -688,7 +688,7 @@ else
else
# Determine the new kernel version from a module,
# rather than from a directory- or filenames:
- KVER=$(strings ${KMODDIR}/kernel/fs/overlayfs/overlay.ko* |grep ^vermagic |cut -d= -f2 |cut -d' ' -f1)
+ KVER=$(strings $(find ${KMODDIR}/kernel/ -name "*.ko*" |head -1) |grep ^vermagic |cut -d= -f2 |cut -d' ' -f1)
if [ -z "${KVER}" ]; then
echo "*** Could not determine kernel version from the module directory"
echo "*** (querying module kernel/fs/overlayfs/overlay.ko)!"