I'm wanting to trigger using udev under CoreOS a script on disk add/remove.
The purpose/goal is to automatically mount ceph data partitions to a specific directory in preparation for starting/stopping osd's in ceph-docker.
1) Firstly, CoreOS uses systemd. Should I be doing a systemd way, or do I just create my file under /etc/udev/rules.d ? (a directory which doesn't exist by default).
2) Lets say I do manage to detect a disk through udev and trigger a script with a device filename. How do I read /dev/sda and determine whether it is a ceph disk. i.e. I want to examine the typecode. It needs to be