Use callback to test if ldm should mount something.

I also added the filesystem of the mounted device to the env variables. And an example callback.