binary_syslinux: rely on $LIVE_BUILD_VERSION instead of lb --version
This commit is contained in:
parent
fb41c19009
commit
e2243dbacb
|
@ -209,7 +209,6 @@ _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 -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 }')"
|
||||
_LIVE_TOOLS_VERSION="$(chroot chroot apt-cache policy live-tools | awk '/Installed: / { print $2 }')"
|
||||
|
@ -236,7 +235,7 @@ do
|
|||
-e "s|@MINUTE@|${_MINUTE}|g" \
|
||||
-e "s|@SECOND@|${_SECOND}|g" \
|
||||
-e "s|@LINUX_VERSIONS@|${_LINUX_VERSIONS}|g" \
|
||||
-e "s|@LIVE_BUILD_VERSION@|${_LIVE_BUILD_VERSION}|g" \
|
||||
-e "s|@LIVE_BUILD_VERSION@|${LIVE_BUILD_VERSION}|g" \
|
||||
-e "s|@LIVE_BOOT_VERSION@|${_LIVE_BOOT_VERSION}|g" \
|
||||
-e "s|@LIVE_CONFIG_VERSION@|${_LIVE_CONFIG_VERSION}|g" \
|
||||
-e "s|@LIVE_TOOLS_VERSION@|${_LIVE_TOOLS_VERSION}|g" \
|
||||
|
|
Loading…
Reference in New Issue