Lines Matching refs:img_path
874 def _create_disk_img(self, img_path, size):
878 @param img_path: Path to the desired image file.
882 logging.debug('Creating disk image %s, size = %d Bytes', img_path, size)
884 cmd = 'dd if=/dev/zero of=%s bs=1024 count=%d' % (img_path, size)
887 e_msg = 'Error creating disk image %s: %s' % (img_path, e)
889 return img_path
892 def _attach_img_loop(self, img_path):
896 @param img_path: Path of the image file that will be attached to a
900 logging.debug('Attaching image %s to a loop device', img_path)
904 cmd = 'losetup -f %s' % img_path
908 (img_path, e))