Skip to content
Snippets Groups Projects
mount-run-@MOD@ 406 B
Newer Older
Eric Vidal's avatar
Eric Vidal committed
[main]
@type = oneshot
@name = mount-run-@MOD@
@description = "Mount /run/user directory of @MOD@"
@user = (root)

[start]
@build = auto
@execute = 
(
	## create /run/user/<uid>
	execl-subuidgid -o @MOD@
	foreground {
		if -nt { mountpoint -q /run/user/${UID} }
		if { mkdir -p /run/user/${UID} }
		mount -o noatime,nodev,nosuid,gid=${GID},uid=${UID},mode=0700,size=64M -t tmpfs user /run/user/${UID}
	}
)