From f8ac2248af8a7f04094c6d2f8844e928212ff6b0 Mon Sep 17 00:00:00 2001 From: Dan van der Ster Date: Fri, 26 Sep 2014 18:00:22 +0200 Subject: [PATCH] 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) --- src/ceph-disk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph-disk b/src/ceph-disk index b9320e008a5c1..8475c56811657 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') -- 2.39.5