[Git][reproducible-builds/diffoscope][master] Mount filesystem images readonly

Chris Lamb gitlab at salsa.debian.org
Sat May 30 11:20:03 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
e410ca9e by Daniel Fullmer at 2020-05-29T22:26:12-04:00
Mount filesystem images readonly

- - - - -


1 changed file:

- diffoscope/comparators/fsimage.py


Changes:

=====================================
diffoscope/comparators/fsimage.py
=====================================
@@ -62,7 +62,7 @@ class FsImageContainer(Archive):
             return None
         devices = self.g.list_devices()
         try:
-            self.g.mount(devices[0], "/")
+            self.g.mount_options("ro", devices[0], "/")
         except RuntimeError:
             logger.exception("guestfs count not mount image; invalid file?")
             return None



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/e410ca9eabbcb6abfa201b4ec115cf921310ccca

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/e410ca9eabbcb6abfa201b4ec115cf921310ccca
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200530/c3ade947/attachment.htm>


More information about the rb-commits mailing list