ports/main/nnd-s6-services/rc/ceph.osd.0.bluestore-primer/up

18 lines
299 B
Plaintext

#!/bin/execlineb -P
define ID 0
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/ceph.osd.${ID}
importas -i DEV DEV
emptyenv
export PATH $PATH
fdclose 1
fdclose 2
exec ceph-bluestore-tool prime-osd-dir --dev $DEV --path /var/lib/ceph/osd/ceph-${ID} --no-mon-config