aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/mount.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-26 03:15:32 +0900
committerOphestra <cat@gensokyo.uk>2025-08-26 03:27:07 +0900
commit9bc8532d56fc5c1f727919d21f464dff09316913 (patch)
tree1c933c8c4fec2c0516b3f70fe8d5bb75cc2259dc /container/mount.go
parent07194c74cb464cb073cabda33779c1782eaf0d74 (diff)
container/initdev: mount tmpfs on shm for ro dev
Programs expect /dev/shm to be a writable tmpfs. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/mount.go')
-rw-r--r--container/mount.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/container/mount.go b/container/mount.go
index 68011c7c..f7d4af31 100644
--- a/container/mount.go
+++ b/container/mount.go
@@ -43,6 +43,8 @@ const (
// Note that any source value is allowed when fstype is [FstypeOverlay].
SourceOverlay = "overlay"
+ // SourceTmpfs is used when mounting tmpfs.
+ SourceTmpfs = "tmpfs"
// SourceTmpfsRootfs is used when mounting the tmpfs instance backing the intermediate root.
SourceTmpfsRootfs = "rootfs"
// SourceTmpfsDevtmpfs is used when mounting tmpfs representing a subset of host devtmpfs.