diff options
author | Doug Rabson <dfr@FreeBSD.org> | 2022-11-07 16:56:09 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 2023-01-06 07:57:57 +0000 |
commit | 823dfd17e27c2561119b1de9b04dc28d8e709b1a (patch) | |
tree | 9fb0e3bb98d7da043361ddd8a4e35952452446b0 /sbin/mount_nullfs/mount_nullfs.8 | |
parent | 77c0992af4e3b013915ae84ef3d831f470ea5dd5 (diff) |
Add support for mounting single files in nullfs
My main use-case for this is to support mounting config files and secrets
into OCI containers. My current workaround copies the files into the
container which is messy and risks secrets leaking into container images
if the cleanup fails.
Reviewed by: mjg, kib
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D37478
(cherry picked from commit a3f714c4ff8cf3754520f330abe783aa6a06dcdb)
Diffstat (limited to 'sbin/mount_nullfs/mount_nullfs.8')
-rw-r--r-- | sbin/mount_nullfs/mount_nullfs.8 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/mount_nullfs/mount_nullfs.8 b/sbin/mount_nullfs/mount_nullfs.8 index f2969209e240..46e55d8a7d54 100644 --- a/sbin/mount_nullfs/mount_nullfs.8 +++ b/sbin/mount_nullfs/mount_nullfs.8 @@ -64,6 +64,17 @@ but in other respects it is indistinguishable from the original. .Pp The .Nm +utility supports mounting both directories and single files. +Both +.Ar target +and +.Ar mount_point +must be the same type. +Mounting directories to files or files to +directories is not supported. +.Pp +The +.Nm file system differs from a traditional loopback file system in two respects: it is implemented using a stackable layers techniques, and its |