Example #1
0
    def _getArgsAsStr(self):
        retval = FC4_PartData._getArgsAsStr(self)

        if self.align:
            retval += " --align"

        return retval
Example #2
0
    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
Example #3
0
    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
Example #4
0
    def _getArgsAsStr(self):
        retval = FC4_PartData._getArgsAsStr(self)

        if self.align:
            retval += " --align"

        return retval
Example #5
0
 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
Example #6
0
 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
Example #7
0
 def __init__(self, *args, **kwargs):
     FC4_PartData.__init__(self, *args, **kwargs)
     self.deleteRemovedAttrs()
     self.align = kwargs.get("align", None)
Example #8
0
 def __init__(self, *args, **kwargs):
     FC4_PartData.__init__(self, *args, **kwargs)
     self.deleteRemovedAttrs()
     self.align = kwargs.get("align", None)