]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: add rootcontext=@target
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 21 Feb 2023 14:29:59 +0000 (15:29 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Tue, 21 Feb 2023 15:33:50 +0000 (16:33 +0100)
commitcbbe29e6c14fff3d1da28ae94324a18cd022f9dd
tree5b77e7a935e5381c70650f569f0583a018980c80
parent832ee3d79e36b1e49b07ec841aa1497088e1729b
mount: add rootcontext=@target

Add a special value for rootcontext=, namely `@target`, to set the root
context of the new filesystem to the current context of the target
mountpoint.  Useful for in-memory filesystems, like tmpfs and ramfs.

Closes: #1830
libmount/src/context_mount.c
sys-utils/mount.8.adoc