Created
December 4, 2022 08:36
-
-
Save tsuchm/97a42160c272c4dac588e60f3b252c7b to your computer and use it in GitHub Desktop.
Patch to fix the problem on singularity-3.1 described in https://stackoverflow.com/questions/63061424/squashfs-error-when-running-singularity-after-ubuntu-upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/internal/pkg/util/fs/mount/mount.go | |
+++ b/internal/pkg/util/fs/mount/mount.go | |
@@ -585,7 +585,10 @@ | |
if sizelimit == 0 { | |
return fmt.Errorf("invalid image size, zero length") | |
} | |
- options = fmt.Sprintf("loop,offset=%d,sizelimit=%d,errors=remount-ro", offset, sizelimit) | |
+ options = fmt.Sprintf("loop,offset=%d,sizelimit=%d", offset, sizelimit) | |
+ if fstype == "ext3" { | |
+ options += ",errors=remount-ro" | |
+ } | |
return p.add(tag, source, dest, fstype, flags, options) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment