Revision 550d4a49 image_creator/disk.py

b/image_creator/disk.py
238 238

  
239 239
        self.progressbar.goto((position * 100) // total)
240 240

  
241
    def mount(self):
241
    def mount(self, readonly=False):
242 242
        """Mount all disk partitions in a correct order."""
243 243

  
244
        mount = self.g.mount_ro if readonly else self.g.mount
244 245
        self.out.output("Mounting image...", False)
245 246
        mps = self.g.inspect_get_mountpoints(self.root)
246 247

  
......
256 257
        mps.sort(compare)
257 258
        for mp, dev in mps:
258 259
            try:
259
                self.g.mount(dev, mp)
260
                mount(dev, mp)
260 261
            except RuntimeError as msg:
261 262
                self.out.warn("%s (ignored)" % msg)
262 263
        self.out.success("done")

Also available in: Unified diff