Sorting kernel versions in reverse order (newest first) in syslinux configurations...
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 13 May 2013 10:57:32 +0000 (12:57 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 13 May 2013 10:57:35 +0000 (12:57 +0200)
scripts/build/binary_syslinux

index c66cde8..2ae3482 100755 (executable)
@@ -255,7 +255,7 @@ then
        _HOUR="$(date +%H)"
        _MINUTE="$(date +%M)"
        _SECOND="$(date +%S)"
-       _LINUX_VERSIONS="$(for _LINUX in chroot/boot/vmlinuz-* ; do chroot chroot apt-cache policy $(basename ${_LINUX} | sed -e 's|vmlinuz-|linux-image-|') | awk '/Installed: / { print $2 }' ; done | sort -u | tr "\n" " ")"
+       _LINUX_VERSIONS="$(for _LINUX in chroot/boot/vmlinuz-* ; do chroot chroot apt-cache policy $(basename ${_LINUX} | sed -e 's|vmlinuz-|linux-image-|') | awk '/Installed: / { print $2 }' ; done | sort -Vru | tr "\n" " ")"
        _LIVE_BUILD_VERSION="$(lb --version)"
        _LIVE_BOOT_VERSION="$(chroot chroot apt-cache policy live-boot | awk '/Installed: / { print $2 }')"
        _LIVE_CONFIG_VERSION="$(chroot chroot apt-cache policy live-config | awk '/Installed: / { print $2 }')"