Revision 8c574358 image_creator/main.py

b/image_creator/main.py
36 36
import sys
37 37
import os
38 38

  
39

  
39 40
def main():
40 41
    if len(sys.argv) != 3:
41 42
        sys.exit("Usage: %s <source> <output_file>" %
......
50 51
        osclass = get_os_class(dev.distro, dev.ostype)
51 52
        image_os = osclass(dev.root, dev.g)
52 53
        metadata = image_os.get_metadata()
53
        for key, val in metadata.iteritems():
54
            print "%s=%s" % (key,val)
55

  
56 54
        image_os.data_cleanup()
55
        dev.umount()
56
        dev.shrink()
57 57

  
58 58
    finally:
59 59
        disk.cleanup()
......
62 62
    main()
63 63

  
64 64
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
65

  

Also available in: Unified diff