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

[start]
@build = auto
@execute = 
(
	## create /run/user/<uid>
Eric Vidal's avatar
Eric Vidal committed
	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}
	}
)