infra-package-needs: add support for centos-8-stream
This change fix the centos version check to work with both '8' and '8-stream' value for DIB_RELEASE. The current test is failing with: $ export DIB_RELEASE=8-stream $ set -u $ [[ $DIB_RELEASE -gt 8 ]] bash: stream: unbound variable The fix is lifted from https://review.opendev.org/#/c/734083/14/diskimage_builder/elements/simple-init/environment.d/15-simple-init-networkmanager Change-Id: I23dca12eef1c3cc2aacf6ac50029e2bc9fde72dc
This commit is contained in:
parent
c50d61d6fc
commit
66cb2317fd
@ -17,7 +17,7 @@ case "$DIB_INIT_SYSTEM" in
|
||||
if [[ ${DIB_RELEASE} != 'focal' ]]; then
|
||||
systemctl enable ntp.service
|
||||
fi
|
||||
elif [[ $DISTRO_NAME == "centos" && $DIB_RELEASE -ge 8 ]]; then
|
||||
elif [[ $DISTRO_NAME == "centos" && $DIB_RELEASE > 7 ]]; then
|
||||
systemctl enable chronyd
|
||||
else
|
||||
systemctl enable ntpd.service
|
||||
|
Loading…
Reference in New Issue
Block a user