Revision 797e0df7 image_creator/os_type/__init__.py
b/image_creator/os_type/__init__.py | ||
---|---|---|
79 | 79 |
class OSBase(object): |
80 | 80 |
"""Basic operating system class""" |
81 | 81 |
|
82 |
def __init__(self, rootdev, ghandler, output): |
|
83 |
self.root = rootdev |
|
84 |
self.g = ghandler |
|
85 |
self.out = output |
|
82 |
def __init__(self, image): |
|
83 |
self.image = image |
|
84 |
|
|
85 |
self.root = image.root |
|
86 |
self.g = image.g |
|
87 |
self.out = image.out |
|
88 |
|
|
86 | 89 |
self.meta = {} |
87 | 90 |
|
88 | 91 |
def collect_metadata(self): |
Also available in: Unified diff