Is there a strong reason for writing the `/etc/exports` file? AFAIK just using `exportfs` gives you everything needed to add an export in runtime.

Then later when you're finished (like in the `cleanup` method), you can call `exportfs -u`.