Lines Matching refs:format

288                     raise WicError("Can't find executable '{}'".format(name))
301 raise WicError("Not supported fstype: {}".format(part.fstype))
321 return exec_cmd("{} {} -R 'ls -l {}'".format(self.debugfs,
325 return exec_cmd("{} -i {} ::{}".format(self.mdir,
336 format(os.path.dirname(dest.path), src, os.path.basename(src),
341 format(os.path.dirname(src.path), src.path,
346 cmd = "{} -i {} -snop {} ::{}".format(self.mcopy,
350 cmd = "{} -i {} -snop ::{} {}".format(self.mcopy,
363 cmd = "{} {} -wR 'rm \"{}\"'".format(self.debugfs,
380 rmdir_out = exec_cmd("{} {} -wR 'rmdir \"{}\"'".format(self.debugfs,
404 cmd = "{} -i {} ::{}".format(self.mdel, partimg, path)
411 cmd = "{} -i {} ::{}".format(self.mdeltree,
426 outf.write("{}: {}\n".format(key, val))
436 line += '{}={}, '.format(name, val)
441 outf.write("{}\n".format(line))
445 out = exec_cmd("{} -J {}".format(self.sfdisk, path))
451 cmd = "{} --no-reread {} < {} ".format(self.sfdisk, target, outf.name)
466 for line in exec_cmd("{} -F {}".format(self.sfdisk, target)).splitlines():
505 logger.info("copying unchanged partition {}".format(pnum))
514 with tempfile.NamedTemporaryFile(prefix="wic-part{}-".format(pnum)) as partf:
518 logger.info("resizing ext partition {}".format(pnum))
521 exec_cmd("{} -pf {}".format(self.e2fsck, partfname))
522 exec_cmd("{} {} {}s".format(\
525 logger.info("copying content of the fat partition {}".format(pnum))
528 cmd = "{} -snompi {} :: {}".format(self.mcopy,
534 label_str = "-n {}".format(label) if label else ''
536 cmd = "{} {} -C {} {}".format(self.mkdosfs, label_str, partfname,
540 cmd = "{} -snompi {} {}/* ::".format(self.mcopy, partfname, tmpdir)
543 logger.info("creating swap partition {}".format(pnum))
545 label_str = "-L {}".format(label) if label else ''
546 … out = exec_cmd("{} --probe {}".format(self.blkid, self._get_part_image(pnum)))
548 uuid_str = "-U {}".format(uuid) if uuid else ''
551 exec_cmd("{} {} {} {}".format(self.mkswap, label_str, uuid_str, partfname))
555 … logger.warning("skipping partition {}: unsupported fstype {}".format(pnum, fstype))
564 print("{:2d} {:12d} {:12d} {:12d} {}".format(\