Revision df499fea

b/image_creator/main.py
185 185
        snapshot = disk.snapshot()
186 186

  
187 187
        dev = disk.get_device(snapshot)
188
        dev.mount()
188

  
189
        # If no customization is to be applied, the image should be mounted ro
190
        readonly = not (options.sysprep or options.shrink)
191
        dev.mount(readonly)
189 192

  
190 193
        cls = os_cls(dev.distro, dev.ostype)
191 194
        image_os = cls(dev.root, dev.g, out)

Also available in: Unified diff