diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-10-22 14:28:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 14:28:05 +0300 |
commit | 1fe12c0023bb2ee3d1416df324c9fa482ec53374 (patch) | |
tree | 1d83190a32c0c9267c283a9a7da4f65028294c47 /include/tests_kernel | |
parent | 9f9fd51e1db93897bc58e29307478b378cdcb0e7 (diff) | |
parent | f65f4d011b88f7e3d16daaabdd851c7ec3c8b08b (diff) |
Merge pull request #1008 from kolenichsj/master
Alpine Improvements
Diffstat (limited to 'include/tests_kernel')
-rw-r--r-- | include/tests_kernel | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/tests_kernel b/include/tests_kernel index d0f5cdcd..b3ce61f7 100644 --- a/include/tests_kernel +++ b/include/tests_kernel @@ -664,6 +664,9 @@ elif [ -f ${ROOTDIR}boot/vmlinuz-linux-lts ]; then LogText "Result: found ${ROOTDIR}boot/vmlinuz-linux-lts" FOUND_VMLINUZ=${ROOTDIR}boot/vmlinuz-linux-lts + elif [ -f ${ROOTDIR}boot/vmlinuz-lts ]; then + LogText "Result: found ${ROOTDIR}boot/vmlinuz-lts" + FOUND_VMLINUZ=${ROOTDIR}boot/vmlinuz-lts else # Match on items like /boot/vm5.3.7 or /boot/vmlinuz-5.3.7-1-default. Get newest file (ls -t and pipe into head) # Note: ignore a rescue kernel (e.g. CentOS) @@ -679,7 +682,7 @@ VERSION_ON_DISK=$(echo ${FOUND_VMLINUZ} | ${SEDBINARY} 's#^/boot/##' | ${SEDBINARY} 's/^vmlinuz-//') LogText "Result: version derived from file name is '${VERSION_ON_DISK}'" elif [ -f "${FOUND_VMLINUZ}" ]; then - VERSION_ON_DISK=$(echo ${FOUND_VMLINUZ} | ${SEDBINARY} 's#^/boot/##' | ${SEDBINARY} 's/^vmlinuz-//') + VERSION_ON_DISK=$(echo ${FOUND_VMLINUZ} | ${SEDBINARY} 's#^/boot/##' | ${SEDBINARY} 's/^vmlinuz-//' | ${SEDBINARY} '$s/-\?\(linux\)\?-\?\(lts\)\?//') LogText "Result: version derived from file name is '${VERSION_ON_DISK}'" fi |