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.88~148^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2580%2Fhead;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 --- diff --git a/src/ceph-disk b/src/ceph-disk index b9320e008a5c..8475c5681165 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')