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

Eric Vidal's avatar
Eric Vidal committed

[start]
Eric Vidal's avatar
Eric Vidal committed
@execute =
Eric Vidal's avatar
Eric Vidal committed
(
	if { 66-yeller -p mount-run@@I starts... }
	if -nt {
Eric Vidal's avatar
Eric Vidal committed

Eric Vidal's avatar
Eric Vidal committed
		execl-subuidgid -o @I
		execl-toc -X -m /run/user/${UID} -o noatime,nodev,nosuid,gid=${GID},uid=${UID},mode=0700,size=64M -t tmpfs -d user
	}
	66-yeller -fp mount-run@@I crashed!
)