Description of problem:
When defining a mount in a mock cfg file and you pass in a fs type mock prepends a -t to the vfstype. This causes the mount command to have -t -t fstype and the mount fails.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Define mount point in mock cfg
2. Try to use cfg
Mount fails to be mounted.
Mount is mounted in chroot
This is how the mount is defined in the config:
config_opts['plugin_conf']['mount_opts']['dirs'].append(('storage:/export/build', '/build', 'nfs', 'defaults,noatime,nodiratime,nosuid'))
To fix this comment out the section in mount.py:
--- mount.py.orig 2013-02-08 13:54:47.000000000 -0700
+++ mount.py 2012-11-01 14:59:25.000000000 -0600
@@ -43,10 +43,10 @@
for device, dest_dir, vfstype, mount_opts in self.opts['dirs']:
- if vfstype:
- vfstype = "-t " + vfstype
- vfstype = ""
+# if vfstype:
+# vfstype = "-t " + vfstype
+# vfstype = ""
Yeah, that doesn't make much sense.
I've deleted the vfstype lines and queued the change for the 1.1.31 release.
mock-1.1.31-1.fc19 has been submitted as an update for Fedora 19.
mock-1.1.31-1.fc17 has been submitted as an update for Fedora 17.
mock-1.1.31-1.el6 has been submitted as an update for Fedora EPEL 6.
mock-1.1.31-1.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mock-1.1.31-1.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
mock-1.1.32-1.fc17 has been submitted as an update for Fedora 17.
mock-1.1.32-1.fc18 has been submitted as an update for Fedora 18.
mock-1.1.32-1.el6 has been submitted as an update for Fedora EPEL 6.
mock-1.1.32-1.fc19 has been submitted as an update for Fedora 19.
mock-1.1.32-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.32-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.32-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.