Lines Matching refs:path
55 def mount(dev, path, option=''): argument
60 cmd = ' '.join([mountcmd, option, dev, path])
66 def umount(path): argument
68 cmd = ['/usr/sbin/umount', path]
70 cmd = ['/bin/umount', path]
81 if not os.path.exists(self.tmpdir):
88 url = os.path.join(self.srcdir, filename)
90 … local_name = os.path.join(self.tmpdir, 'xenpvboot.%s.%s' % (os.path.basename(filename), suffix))
129 nfs = os.path.dirname(self.location[8:])
130 iso = os.path.basename(self.location[8:])
135 mount(os.path.join(self.nfsdir, iso), self.srcdir, option)
156 … local_name = os.path.join(self.tmpdir, 'xenpvboot.%s.%s' % (os.path.basename(filename), suffix))
157 cmd = '/usr/bin/tftp %s -c get %s %s' % (host, os.path.join(basedir, filename), local_name)
221 or (os.path.exists(location) and os.path.isdir(location))):
223 elif location.startswith('nfs:') or (os.path.exists(location) and not os.path.isdir(location)):