[PATCH] erofs-utils: mount: add manpage and usage info for oci.insecure option
Yifan Zhao
zhaoyifan28 at huawei.com
Mon Dec 22 18:54:21 AEDT 2025
Add manpage and cmdline usage help for the newly introduced
`oci.insecure` option in mount.erofs. Also fix an indent error.
Signed-off-by: Yifan Zhao <zhaoyifan28 at huawei.com>
---
man/mount.erofs.8 | 3 +++
mount/main.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/man/mount.erofs.8 b/man/mount.erofs.8
index 6b3a32b..856e07f 100644
--- a/man/mount.erofs.8
+++ b/man/mount.erofs.8
@@ -117,6 +117,9 @@ Path to a tarball index file for hybrid tar+OCI mode.
.TP
.BI "oci.zinfo=" path
Path to a gzip zinfo file for random access to gzip-compressed tar layers.
+.TP
+.BI "oci.insecure"
+Use HTTP instead of HTTPS to access the image registry.
.SH NOTES
.IP \(bu 2
EROFS filesystems are read-only by nature. The \fBrw\fR option will be ignored.
diff --git a/mount/main.c b/mount/main.c
index ed6bcdc..1463dee 100644
--- a/mount/main.c
+++ b/mount/main.c
@@ -94,7 +94,7 @@ static void usage(int argc, char **argv)
" -t type[.subtype] filesystem type (and optional subtype)\n"
" subtypes: fuse, local, nbd\n"
" -u unmount the filesystem\n"
- " --reattach reattach to an existing NBD device\n"
+ " --reattach reattach to an existing NBD device\n"
#ifdef OCIEROFS_ENABLED
"\n"
"OCI-specific options (with -o):\n"
@@ -105,6 +105,7 @@ static void usage(int argc, char **argv)
" oci.password=<pass> password for authentication (optional)\n"
" oci.tarindex=<path> path to tarball index file (optional)\n"
" oci.zinfo=<path> path to gzip zinfo file (optional)\n"
+ " oci.insecure use HTTP instead of HTTPS (optional)\n"
#endif
, argv[0]);
}
--
2.43.0
More information about the Linux-erofs
mailing list