Lines Matching refs:findProg
81 realCommand = [findProg('sudo')] + command
87 realCommand = [findProg('sudo')] + command
91 def findProg(program, cleanupDev=None):
107 (out, returncode) = privOutput([findProg('losetup'), '-f'])
112 command = [findProg('losetup'), self.devFile, fileName]
122 returncode = runPriv([findProg('losetup'), '-d', self.devFile])
131 command = [findProg('sfdisk'), '-d', dev.devFile]
151 (mountTable, returncode) = getOutput([findProg('mount')])
226 if runPriv([findProg('mount'), str(dev), mountPoint]) != 0:
247 if runPriv([findProg('umount'), mountPoint]) != 0:
287 return runPriv([findProg('sfdisk'), '--no-reread', '-D', \
318 return runPriv([findProg('mkfs.%s' % fsType, dev), str(dev)])