Revision 173022fb image_creator/os_type/windows.py

b/image_creator/os_type/windows.py
65 65

  
66 66
        return [password]
67 67

  
68
    @sysprep(enabled=True)
69
    def disable_ipv6_privacy_extensions(self, print_header=True):
68
    @sysprep('Disabling IPv6 privacy extensions')
69
    def disable_ipv6_privacy_extensions(self):
70 70
        """Disable IPv6 privacy extensions"""
71 71

  
72
        if print_header:
73
            self.out.output("Disabling IPv6 privacy extensions")
74

  
75 72
        self._guest_exec('netsh interface ipv6 set global '
76 73
                         'randomizeidentifiers=disabled store=persistent')
77 74

  
78
    @sysprep(enabled=True)
79
    def microsoft_sysprep(self, print_header=True):
75
    @sysprep('Executing sysprep on the image (may take more that 10 minutes)')
76
    def microsoft_sysprep(self):
80 77
        """Run the Microsoft System Preparation Tool on the Image. This will
81 78
        remove system-specific data and will make the image ready to be
82 79
        deployed. After this no other task may run.
83 80
        """
84 81

  
85
        if print_header:
86
            self.out.output("Executing sysprep on the image (may take more "
87
                            "than 10 minutes)")
88

  
89 82
        self._guest_exec(r'C:\Windows\system32\sysprep\sysprep '
90 83
                         r'/quiet /generalize /oobe /shutdown')
91 84
        self.syspreped = True

Also available in: Unified diff