summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-05-13 12:57:32 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-13 12:57:35 +0200
commit2bad1bd9c88ac57723494338d370ed16ddd7f788 (patch)
tree520a3e0bfae77e65bc4f34f49c5c35b122cee0a5 /scripts
parentd8b79209d4ac2fb9bfb708990588f72d5ad7bb71 (diff)
downloadvyos-live-build-2bad1bd9c88ac57723494338d370ed16ddd7f788.tar.gz
vyos-live-build-2bad1bd9c88ac57723494338d370ed16ddd7f788.zip
Sorting kernel versions in reverse order (newest first) in syslinux configurations in consistency with normal bootloader behaviours.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_syslinux2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index c66cde83b..2ae348240 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -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 }')"