I would like to use tmpfs with mock, but I want still access to the buildroot after a successful build. Therefore I would like to have an option to make mock do this: 1) Always mount tmpfs without -n to make it easier to determine, whether it is already mounted 2) Umount the tmpfs in clean state if it is mounted 3) Do not umount it in other states Everyone who still wants the tmpfs to be umounted can run mock with "--cleanup-after" and afaics will see no difference, because umounting the tmpfs has the same effect.
Fedorahosted product is retired and nearly invisible. Moving to Fedora product.
Created attachment 960655 [details] tmpfs keep_mounted option Patch attached. If used, then tmpfs can be manually unmounted by clean/scrub/cleanup-after (tmpfs plugin MUST be enabled). Also, I think, that should be disabled by default because if used by none-experienced users, can cause additional mock usage problems (example: tmpfs not unmounted + plugin disabled + mock --clean -> "resource busy" error)
Commited as c0bef2a And I add check if keep_mounted key is present in commit 7ab37b8 Thanks for contribution.
Thank you for review
mock-1.2.3-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/mock-1.2.3-1.fc21
mock-1.2.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.2.3-1.fc20
mock-1.2.3-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/mock-1.2.3-1.el7
mock-1.2.3-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.2.3-1.el6
Package mock-1.2.3-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mock-1.2.3-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-16285/mock-1.2.3-1.fc21 then log in and leave karma (feedback).
mock-1.2.3-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.3-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.3-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.3-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.