If no customization is to be applied the image should be mounted
readonly.
snapshot = disk.snapshot()
dev = disk.get_device(snapshot)
snapshot = disk.snapshot()
dev = disk.get_device(snapshot)
+
+ # If no customization is to be applied, the image should be mounted ro
+ readonly = not (options.sysprep or options.shrink)
+ dev.mount(readonly)
cls = os_cls(dev.distro, dev.ostype)
image_os = cls(dev.root, dev.g, out)
cls = os_cls(dev.distro, dev.ostype)
image_os = cls(dev.root, dev.g, out)