Fix this exception, found with olpc-os-builder:
File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 930, in _stage_final_image
self._resparse()
File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 897, in _resparse
return self.__instloop.resparse(size)
File "/usr/lib/python2.7/site-packages/imgcreate/fs.py", line 526, in resparse
minsize = self.__resize_to_minimal()
File "/usr/lib/python2.7/site-packages/imgcreate/fs.py", line 521, in __resize_to_minimal
resize2fs(self.disk.lofile, minimal = True, tmpdir = self.tmpdir)
File "/usr/lib/python2.7/site-packages/imgcreate/fs.py", line 108, in resize2fs
raise ResizeError("fsck after resize returned an error (%d)!", (ret,))
TypeError: __init__() takes exactly 2 arguments (3 given)
---
imgcreate/fs.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index a387f51..da444e4 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -105,7 +105,7 @@ def resize2fs(fs, size = None, minimal = False, tmpdir = "/tmp"):
ret = e2fsck(fs)
if ret != 0:
- raise ResizeError("fsck after resize returned an error (%d)!", (ret,))
+ raise ResizeError("fsck after resize returned an error (%d)!" % (ret,))
return 0
--
1.7.7.6