]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: add Scientific Linux as a Redhat clone
authorDan van der Ster <daniel.vanderster@cern.ch>
Fri, 26 Sep 2014 16:00:22 +0000 (18:00 +0200)
committerSage Weil <sage@redhat.com>
Sat, 27 Sep 2014 00:46:15 +0000 (17:46 -0700)
Scientific Linux is a RHEL clone and needs to use partx.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
(cherry picked from commit 5ca7ea5b531f28b3c87161d53aee907d6957cfc2)

src/ceph-disk

index b9320e008a5c1710ac945808699254b29b89b9fa..8475c56811657a5d0a67504b6bf01ad3fa245cc1 100755 (executable)
@@ -1075,7 +1075,7 @@ def prepare_journal_dev(
         # On RHEL and CentOS distros, calling partprobe forces a reboot of the
         # server. Since we are not resizing partitons so we rely on calling
         # partx
-        if platform_distro().startswith(('centos', 'red')):
+        if platform_distro().startswith(('centos', 'red', 'scientific')):
             LOG.info('calling partx on prepared device %s', journal)
             LOG.info('re-reading known partitions will display errors')
             command(
@@ -1508,7 +1508,7 @@ def main_prepare(args):
             # On RHEL and CentOS distros, calling partprobe forces a reboot of
             # the server. Since we are not resizing partitons so we rely on
             # calling partx
-            if platform_distro().startswith(('centos', 'red')):
+            if platform_distro().startswith(('centos', 'red', 'scientific')):
                 LOG.info('calling partx on prepared device %s', args.data)
                 LOG.info('re-reading known partitions will display errors')