diff --git a/image_creator/main.py b/image_creator/main.py index fa2e23d5f9f202c641747105a9d7477797994971..af8f28ebcae32f15e2b0785078f71a78c297ce34 100644 --- a/image_creator/main.py +++ b/image_creator/main.py @@ -185,7 +185,10 @@ def image_creator(): snapshot = disk.snapshot() dev = disk.get_device(snapshot) - dev.mount() + + # 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)