Browse Source

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
changes/60/755860/1
Tristan Cacqueray 3 months ago
parent
commit
66cb2317fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nodepool/elements/infra-package-needs/post-install.d/80-enable-infra-services

+ 1
- 1
nodepool/elements/infra-package-needs/post-install.d/80-enable-infra-services View File

@@ -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…
Cancel
Save