target = tempfile.mkdtemp()
try:
- absmpoints = self._mount(target,
- [(mapped[i], filesystem[i].mpoint)
- for i in mapped.keys()])
+ self._mount(
+ target,
+ [(mapped[i], filesystem[i].mpoint) for i in mapped.keys()])
+
excluded = self._to_exclude()
rsync = Rsync(self.out)
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-import sys
import os
import textwrap
import StringIO
]
-class metadata_monitor(object):
+class MetadataMonitor(object):
def __init__(self, session, meta):
self.session = session
self.meta = meta
del session['checksum']
# Monitor the metadata changes during syspreps
- with metadata_monitor(session, image_os.meta):
+ with MetadataMonitor(session, image_os.meta):
image_os.do_sysprep()
infobox.finalize()
if not d.yesno("%s\n\nDo you want to continue?" % msg, width=WIDTH,
height=12, title="Image Shrinking"):
- with metadata_monitor(session, dev.meta):
+ with MetadataMonitor(session, dev.meta):
infobox = InfoBoxOutput(d, "Image Shrinking", height=4)
dev.out.add(infobox)
try:
def main_menu(session):
d = session['dialog']
- dev = session['device']
update_background_title(session)
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-import dialog
import time
import StringIO
import tempfile
import uuid
import re
-import sys
import guestfs
import shutil
from sendfile import sendfile
from kamaki.clients.pithos import PithosClient
from kamaki.clients.astakos import AstakosClient
-from image_creator.util import FatalError
-
class Kamaki(object):
# or implied, of GRNET S.A.
from image_creator import __version__ as version
-from image_creator import util
from image_creator.disk import Disk
from image_creator.util import FatalError, MD5
from image_creator.output.cli import SilentOutput, SimpleOutput, \
except ClientError as e:
raise FatalError("Astakos client: %d %s" % (e.status, e.message))
-
disk = Disk(options.source, out, options.tmp)
def signal_handler(signum, frame):
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-from image_creator.os_type.unix import Unix, sysprep
+from image_creator.os_type.unix import Unix
class Freebsd(Unix):
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-from image_creator.os_type.unix import Unix, sysprep
+from image_creator.os_type.unix import Unix
class Hurd(Unix):
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-from image_creator.os_type.unix import Unix, sysprep
+from image_creator.os_type.unix import Unix
class Netbsd(Unix):
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-from image_creator.os_type.linux import Linux, sysprep
+from image_creator.os_type.linux import Linux
class Ubuntu(Linux):
# or implied, of GRNET S.A.
import re
-import sys
from image_creator.os_type import OSBase, sysprep
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-from image_creator.os_type import OSBase, sysprep
+from image_creator.os_type import OSBase
class Windows(OSBase):
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
-import sys
import sh
import hashlib
import time