[arch-nspawn] Detect if something is already mounted
This way we can avoid mounting a bind mount twice, which has two benefits:
- Better handling of a previous error that didn't umount properly
- Users can set the bind mounts on fstab, to speed things up
Updated by lukeshu over 9 years ago
It now uses `systemd-nspawn --bind` instead of an actual mount; which means that if we don't have to ever worry about it not being cleaned up properly.
But that still leaves reason two:
Users can set the bind mounts on fstab, to speed things up
In my experience, `systemd-nspawn --bind` is plenty fast, but I also have a fast machine. I'd appreciate feedback on what to do.