Browse Source

Merge "Add the CentOS system to Ceph related configuration file."

changes/26/640426/7
Zuul 3 months ago
parent
commit
8f068ac705
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      tools/deployment/developer/ceph/040-ceph.sh

+ 3
- 2
tools/deployment/developer/ceph/040-ceph.sh View File

@@ -30,8 +30,9 @@ CEPH_FS_ID="$(cat /tmp/ceph-fs-uuid.txt)"
30 30
 #NOTE(portdirect): to use RBD devices with Ubuntu kernels < 4.5 this
31 31
 # should be set to 'hammer'
32 32
 . /etc/os-release
33
-if [ "x${ID}" == "xubuntu" ] && \
34
-   [ "$(uname -r | awk -F "." '{ print $2 }')" -lt "5" ]; then
33
+if [ "x${ID}" == "xcentos" ] || \
34
+   ([ "x${ID}" == "xubuntu" ] && \
35
+   [ "$(uname -r | awk -F "." '{ print $2 }')" -lt "5" ]); then
35 36
   CRUSH_TUNABLES=hammer
36 37
 else
37 38
   CRUSH_TUNABLES=null

Loading…
Cancel
Save