imgcreate/fs.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit eed8fffc8136399a78f6eae56a1fdcb932f4b6a0
Author: Brian C. Lane <[email protected]>
Date:   Mon Oct 15 11:10:59 2012 -0700

    mount squashfs read-only (#839804)
    
    This eliminates a warning when mounting squashfs.
    
    Resolves: rhbz#839804

diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index 9c60501..d7b751b 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -404,6 +404,9 @@ class DiskMount(Mount):
         if self.fstype:
             args.extend(["-t", self.fstype])
 
+        if self.fstype and self.fstype == "squashfs":
+            args.extend(["-o", "ro"])
+
         rc = subprocess.call(args)
         if rc != 0:
             raise MountError("Failed to mount '%s' to '%s'" %


--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to