summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)!"