(self, host_source, cont_dest, rwmode=False,
                        fstype="none", options=None)
Add one mount point
Add one mount point
Add one mount point
def _add_mount_spec(self, host_source, cont_dest, rwmode=False,
                        fstype="none", options=None):
        """Add one mount point"""
        if rwmode:
            mode = "rw"
        else:
            mode = "ro"
        mount = {"destination": cont_dest,
                 "type": fstype,
                 "source": host_source,
                 "options": ["rbind", "nosuid", "nodev", mode, ], }
        if options is not None:
            mount["options"] = options
        self._container_specjson["mounts"].append(mount)
def _add_mount_spec ( self , host_source , cont_dest , rwmode = False , fstype = "none" , options = None ) : if rwmode : mode = "rw" else : mode = "ro" mount = { "destination" : cont_dest , "type" : fstype , "source" : host_source , "options" : [ "rbind" , "nosuid" , "nodev" , mode , ] , } if options is not None : mount [ "options" ] = options self . _container_specjson [ "mounts" ] . append ( mount )