Revision 9cbb5794 image_creator/main.py

b/image_creator/main.py
65 65
    parser.add_option("-f", "--force", dest="force", default=False,
66 66
        action="store_true", help="Overwrite output files if they exist")
67 67

  
68
    parser.add_option("--no-shrink", dest="shrink", default=True,
69
        help="Don't shrink any partition before extracting the image",
70
        action="store_false")
71

  
72 68
    parser.add_option("--no-cleanup", dest="cleanup", default=True,
73 69
        help="Don't cleanup sensitive data before extracting the image",
74 70
        action="store_false")
75 71

  
72
    parser.add_option("--no-sysprep", dest="sysprep", default=True,
73
        help="Don't perform system preperation before extracting the image",
74
        action="store_false")
75

  
76
    parser.add_option("--no-shrink", dest="shrink", default=True,
77
        help="Don't shrink any partition before extracting the image",
78
        action="store_false")
79

  
76 80
    parser.add_option("-u", "--upload", dest="upload", default=False,
77 81
        help="Upload image to a pithos repository using kamaki",
78 82
        action="store_true")
......
118 122
        osclass = get_os_class(dev.distro, dev.ostype)
119 123
        image_os = osclass(dev.root, dev.g)
120 124
        metadata = image_os.get_metadata()
125

  
126
        if options.sysprep:
127
            image_os.sysprep()
121 128
        
122 129
        if options.cleanup:
123 130
            image_os.data_cleanup()

Also available in: Unified diff