ports/main/nnd-s6-services/rc/mount.var-lib-ceph-osd-ceph-0/up

22 lines
368 B
Plaintext

#!/bin/execlineb -P
define DEST /var/lib/ceph/osd/ceph-0
define CLEANDEST var-lib-ceph-osd-ceph-0
define FSTYPE tmpfs
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/mount.${CLEANDEST}
importas -i OPTS OPTS
emptyenv
export PATH $PATH
fdclose 1
fdclose 2
foreground {
exec mkdir -p $DEST
} exec mount -t $FSTYPE -o $OPTS tmpfs $DEST