From: Dan van der Ster Date: Fri, 26 Sep 2014 16:00:22 +0000 (+0200) Subject: ceph-disk: add Scientific Linux as a Redhat clone X-Git-Tag: v0.86~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8ac2248af8a7f04094c6d2f8844e928212ff6b0;p=ceph.git ceph-disk: add Scientific Linux as a Redhat clone Scientific Linux is a RHEL clone and needs to use partx. Signed-off-by: Dan van der Ster (cherry picked from commit 5ca7ea5b531f28b3c87161d53aee907d6957cfc2) --- diff --git a/src/ceph-disk b/src/ceph-disk index b9320e008a5..8475c568116 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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')