summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-18 20:44:02 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-18 20:44:05 +0200
commit0a553d2a32313ee98c1b3bfd78ea02d079d9895b (patch)
tree47edadb60392f45e5f24324ae577ba3a61d0aa28 /scripts
parent56465f7f46f41b77f8354d10b91c0f96c34b24b2 (diff)
downloadvyos-live-build-0a553d2a32313ee98c1b3bfd78ea02d079d9895b.tar.gz
vyos-live-build-0a553d2a32313ee98c1b3bfd78ea02d079d9895b.zip
Handle multiple version numbers when having more than one linux flavours for splash.svg post-processing.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_binary_syslinux2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux
index d88a0bf54..1d38d1d70 100755
--- a/scripts/build/lb_binary_syslinux
+++ b/scripts/build/lb_binary_syslinux
@@ -277,7 +277,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)"
+ _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)"
_LIVE_BUILD_VERSIONS="$(chroot chroot apt-cache policy live-build | awk '/Installed: / { print $2 }')"
_LIVE_BOOT_VERSIONS="$(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 }')"