diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-13 12:57:32 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-13 12:57:35 +0200 |
commit | 2bad1bd9c88ac57723494338d370ed16ddd7f788 (patch) | |
tree | 520a3e0bfae77e65bc4f34f49c5c35b122cee0a5 | |
parent | d8b79209d4ac2fb9bfb708990588f72d5ad7bb71 (diff) | |
download | vyos-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.
-rwxr-xr-x | scripts/build/binary_syslinux | 2 |
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 }')" |