'uuid': part.uuid or None,
'kspart' : part,
'exclude_image' : part.exclude_image or None,
+ 'no_shrink': part.no_shrink or False,
})
self._instloops = allloops
minsize = 0
for item in self._instloops:
if not item['cpioopts']:
+ if item['no_shrink']:
+ item['loop'].resparse()
+ continue
if item['name'] == self._img_name:
minsize = item['loop'].resparse(size)
else:
self.vdfsopts = kwargs.get("vdfsopts", None)
self.squashfsopts = kwargs.get("squashfsopts", None)
self.cpioopts = kwargs.get("cpioopts", None)
+ self.no_shrink = kwargs.get("no_shrink", False)
def _getArgsAsStr(self):
retval = FC4_PartData._getArgsAsStr(self)
retval += " --squashfsoptions=%s" % self.squashfsopts
if self.cpioopts:
retval += " --cpiooptions=%s" % self.cpioopts
+ if self.no_shrink:
+ retval += " --no-shrink"
return retval
class Mic_Partition(FC4_Partition):
default=None)
op.add_option("--cpiooptions", type="string", action="store", dest="cpioopts",
default=None)
+ op.add_option("--no-shrink", action="store_true", dest="no_shrink", default=False)
return op
return
if size > current_size:
- self.disk.expand(size)
+ self.disk.expand(size=size)
self.__fsck()
return
if size > current_size:
- self.disk.expand(size)
+ self.disk.expand(size=size)
self.__fsck()
return
if size > current_size:
- self.disk.expand(size)
+ self.disk.expand(size=size)
self.__fsck()
return size