Commit df499fea authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

In some circumstances mount the image readonly

If no customization is to be applied the image should be mounted
readonly.
parent 3b7d3fc7
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment