Created attachment 894017 [details] Do not expand the mountpoint path Description of problem: Probing mountpoints might cause problems, when NFS mount is not working as expected. This is unnecessary issue. Version-Release number of selected component (if applicable): $ rpm -q mock mock-1.1.38-1.fc20.noarch Additional info: Anyway, trying to unmount something which was not mounted by mock itself seems fishy and it causes another pain, when I am using mock shell with mounted development directory during development. In case I need to install some additional package, I have to remount the directory again. So I would suggest to drop it.
I tried really hard to reproduce. But no luck. No luck with pure NFS mounts. I got some weird behaviour with foo.bar.com:/exports/archive /mnt/archive nfs ro,noauto,x-systemd.automount,x-systemd.device-timeout=10 0 0 mounts (which Vít is using). But that behave strangly even without mock (I suspect something smelly in systemd). But I was not able to reproduce anything deterministic. Without real reproducer, I doubt I can do anything. Unless somebody provide some reproducer, I will close it in few months.
I tried again (BTW the code is now in _mount_is_ours() and is refactored) and no luck to reproduce. Feel free to reopen when there is better reproducer.