The _getResizeArgs() methods need to return lists of strings since we pass that to the exec functions. Add a _getResizeArgs() to the NTFS class. --- storage/formats/fs.py | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/storage/formats/fs.py b/storage/formats/fs.py index 90743d6..47c6e41 100644 --- a/storage/formats/fs.py +++ b/storage/formats/fs.py @@ -301,7 +301,7 @@ class FS(DeviceFormat): self._type = self.migrationTarget def _getResizeArgs(self): - argv = [self.device, self.targetSize] + argv = [self.device, "%d" % (self.targetSize,)] return argv def doResize(self, *args, **kwargs): @@ -796,7 +796,7 @@ class BTRFS(FS): return argv def _getResizeArgs(self): - argv = ["-r", self.targetSize, self.device] + argv = ["-r", "%d" % (self.targetSize,), self.device] return argv @property @@ -932,6 +932,13 @@ class NTFS(FS): return size + def _getResizeArgs(self): + # You must supply at least two '-f' options to ntfsresize or + # the proceed question will be presented to you. + argv = ["-ff", "-s", "%dM" % (self.targetSize,), self.device] + return argv + + register_device_format(NTFS) -- 1.6.1.3 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list