projects
/
snf-image-creator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new bundle_volume module
[snf-image-creator]
/
image_creator
/
os_type
/
ubuntu.py
diff --git
a/image_creator/os_type/ubuntu.py
b/image_creator/os_type/ubuntu.py
index
77d80ff
..
6a048e5
100644
(file)
--- a/
image_creator/os_type/ubuntu.py
+++ b/
image_creator/os_type/ubuntu.py
@@
-31,19
+31,19
@@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-from image_creator.os_type.linux import Linux
+from image_creator.os_type.linux import Linux, sysprep
class Ubuntu(Linux):
class Ubuntu(Linux):
- def get_metadata(self):
- meta = super(Ubuntu, self).get_metadata()
+ def __init__(self, rootdev, ghandler, output):
+ super(Ubuntu, self).__init__(rootdev, ghandler, output)
+
apps = self.g.inspect_list_applications(self.root)
for app in apps:
if app['app_name'] == 'kubuntu-desktop':
apps = self.g.inspect_list_applications(self.root)
for app in apps:
if app['app_name'] == 'kubuntu-desktop':
- meta['OS'] = 'kubuntu'
- meta['DESCRIPTION'] = \
- meta['DESCRIPTION'].replace('Ubuntu', 'Kubuntu')
+ self.meta['OS'] = 'kubuntu'
+ descr = self.meta['DESCRIPTION'].replace('Ubuntu', 'Kubuntu')
+ self.meta['DESCRIPTION'] = descr
break
break
- return meta
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :