syslinux: obey new UTC timestamp control

This commit is contained in:
Lyndon Brown 2020-05-03 19:27:09 +01:00
parent 31cc121c3d
commit 558942eccb
1 changed files with 9 additions and 9 deletions

View File

@ -215,15 +215,15 @@ _VERSION="${_VERSION:-none}"
_DISTRIBUTION="${LB_DISTRIBUTION_BINARY}"
_DATE="$(date -R)"
_YEAR="$(date -d "${_DATE}" +%Y)"
_MONTH="$(date -d "${_DATE}" +%m)"
_DAY="$(date -d "${_DATE}" +%d)"
_HOUR="$(date -d "${_DATE}" +%H)"
_MINUTE="$(date -d "${_DATE}" +%M)"
_SECOND="$(date -d "${_DATE}" +%S)"
_TIMEZONE="$(date -d "${_DATE}" +%Z)"
_TIMEZONE_NUM="$(date -d "${_DATE}" +%z)"
_DATE="$(date $DATE_UTC_OPTION -R)"
_YEAR="$(date $DATE_UTC_OPTION -d "${_DATE}" +%Y)"
_MONTH="$(date $DATE_UTC_OPTION -d "${_DATE}" +%m)"
_DAY="$(date $DATE_UTC_OPTION -d "${_DATE}" +%d)"
_HOUR="$(date $DATE_UTC_OPTION -d "${_DATE}" +%H)"
_MINUTE="$(date $DATE_UTC_OPTION -d "${_DATE}" +%M)"
_SECOND="$(date $DATE_UTC_OPTION -d "${_DATE}" +%S)"
_TIMEZONE="$(date $DATE_UTC_OPTION -d "${_DATE}" +%Z)"
_TIMEZONE_NUM="$(date $DATE_UTC_OPTION -d "${_DATE}" +%z)"
_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" " ")"