Revision a1a5ca4b
b/image_creator/disk.py | ||
---|---|---|
181 | 181 |
part_dev = "%s%d" % (dev, last_partition['part_num']) |
182 | 182 |
fs_type = self.g.vfs_type(part_dev) |
183 | 183 |
if not re.match("ext[234]", fs_type): |
184 |
print "Warning, don't know how to resize %s partitions" % vfs_type
|
|
184 |
print "Warning: Don't know how to resize %s partitions." % vfs_type
|
|
185 | 185 |
return |
186 | 186 |
|
187 | 187 |
self.g.e2fsck_f(part_dev) |
b/image_creator/os_type/__init__.py | ||
---|---|---|
69 | 69 |
action(full_path) |
70 | 70 |
|
71 | 71 |
def get_metadata(self): |
72 |
"""Returnes some descriptive metadata of the OS."""
|
|
72 |
"""Returns some descriptive metadata about the OS."""
|
|
73 | 73 |
meta = {} |
74 | 74 |
meta["OSFAMILY"] = self.g.inspect_get_type(self.root) |
75 | 75 |
meta["OS"] = self.g.inspect_get_distro(self.root) |
... | ... | |
78 | 78 |
return meta |
79 | 79 |
|
80 | 80 |
def data_cleanup(self): |
81 |
"""Cleanup sesitive data out of the OS image.""" |
|
81 |
"""Cleanup sensitive data out of the OS image."""
|
|
82 | 82 |
raise NotImplementedError |
83 | 83 |
|
84 | 84 |
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai : |
Also available in: Unified diff