disk,
journal,
activate_prepared_disk,
+ init,
zap,
fs_type,
dmcrypt,
)
if activate_prepared_disk:
+ # we don't simply run activate here because we don't know
+ # which partition ceph-disk prepare created as the data
+ # volume. instead, we rely on udev to do the activation and
+ # just give it a kick to ensure it wakes up. we also enable
+ # ceph.target, the other key piece of activate.
+ if init == 'systemd':
+ system.enable_service(conn, "ceph.target")
+ elif init == 'sysvinit':
+ system.enable_service(conn, "ceph")
+
return remoto.process.run(
conn,
[
disk=disk,
journal=journal,
activate_prepared_disk=activate_prepared_disk,
+ init=distro.init,
zap=args.zap_disk,
fs_type=args.fs_type,
dmcrypt=args.dmcrypt,