def _getArgsAsStr(self): retval = FC4_PartData._getArgsAsStr(self) if self.align: retval += " --align" return retval
def _getArgsAsStr(self): retval = FC4_PartData._getArgsAsStr(self) if self.align: retval += " --align=%d" % self.align if self.extopts: retval += " --extoptions=%s" % self.extopts if self.part_type: retval += " --part-type=%s" % self.part_type if self.source: retval += " --source=%s" % self.source if self.sourceparams: retval += " --sourceparams=%s" % self.sourceparams if self.rootfs: retval += " --rootfs-dir=%s" % self.rootfs if self.no_table: retval += " --no-table" if self.use_uuid: retval += " --use-uuid" if self.uuid: retval += " --uuid=%s" % self.uuid retval += " --extra-space=%s" % self.extra_space retval += " --overhead-factor=%f" % self.overhead_factor return retval
def __init__(self, *args, **kwargs): FC4_PartData.__init__(self, *args, **kwargs) self.deleteRemovedAttrs() self.align = kwargs.get("align", None) self.extopts = kwargs.get("extopts", None) self.part_type = kwargs.get("part_type", None) self.source = kwargs.get("source", None) self.sourceparams = kwargs.get("sourceparams", None) self.rootfs = kwargs.get("rootfs-dir", None) self.no_table = kwargs.get("no-table", False) self.extra_space = kwargs.get("extra-space", "10M") self.overhead_factor = kwargs.get("overhead-factor", 1.3) self._use_uuid = False self.uuid = kwargs.get("uuid", None) self.use_uuid = kwargs.get("use-uuid", False) self.source_file = "" self.size = 0
def __init__(self, *args, **kwargs): FC4_PartData.__init__(self, *args, **kwargs) self.deleteRemovedAttrs() self.align = kwargs.get("align", None)