]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume systemd.systemctl always force symlink when masking ceph-disk
authorAlfredo Deza <adeza@redhat.com>
Wed, 8 Nov 2017 20:25:05 +0000 (15:25 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 9 Nov 2017 17:02:16 +0000 (12:02 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/systemd/systemctl.py

index d8d29279c0a381e2dd9634de7c18278758113346..ab8f3e70ae31d8650b7f5661cebda0a41ad77a55 100644 (file)
@@ -50,7 +50,7 @@ def mask_ceph_disk():
     # masking ceph-disk@* will not work, so we must link the service directly.
     # /etc/systemd takes precendence regardless of the location of the unit
     process.run(
-        ['sudo', 'ln',  '-s', '/dev/null',  '/etc/systemd/system/ceph-disk@.service']
+        ['sudo', 'ln', '-sf', '/dev/null',  '/etc/systemd/system/ceph-disk@.service']
     )