diff options
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 |
commit | fd87a9d5bc3fe165d366059a648eadfbe30baf49 (patch) | |
tree | 1cc57659a1584450372dccbcc6d264c7c484d192 /upslak.sh | |
parent | 96ac60a74424a09bf64e453ae4ca60c96a04d3dd (diff) | |
download | liveslak-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.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)!" |