m (Mattdm moved page Projects/Mock/Plugin/BindMount to Mock/Plugin/BindMount: Mock is not a Fedora Subproject.) |
|||
Line 14: | Line 14: | ||
The "/host/path" is the path to a directory on the host that will be the source of a bind-mount, while the '/bind/mount/path/in/chroot' is the path where it will be mounted inside the chroot. | The "/host/path" is the path to a directory on the host that will be the source of a bind-mount, while the '/bind/mount/path/in/chroot' is the path where it will be mounted inside the chroot. | ||
If you want the bind mounts to be available to all configurations, edit the file | If you want the bind mounts to be available to all configurations, edit [[Mock#Generate_custom_config_file|the configuration file]]. |
Latest revision as of 13:13, 24 February 2016
BindMount Plugin
This plugin enables setting up bind mountpoints inside the chroot. It is enabled by default but has no paths setup for bind mounts.
Configuration
In your config file insert the following lines:
config_opts['plugin_conf']['bind_mount_enable'] = True config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' ))
The "/host/path" is the path to a directory on the host that will be the source of a bind-mount, while the '/bind/mount/path/in/chroot' is the path where it will be mounted inside the chroot.
If you want the bind mounts to be available to all configurations, edit the configuration file.