install: Unmount /var/lib/ceph itself if needed
We plan to mount a small logical volume to /var/lib/ceph.
Fixes:
@@ -93,6 +93,10 @@ def _purge_data(remote):
'-maxdepth', '2',
'-type', 'd',
'-exec', 'umount', '{}', ';',
+ run.Raw('&&'),
+ 'sudo', 'umount', '/var/lib/ceph',
+ run.Raw('||'),
+ 'true',
run.Raw(';'),
'sudo',
'rm', '-rf', '--one-file-system', '--', '/var/lib/ceph',
