aboutsummaryrefslogtreecommitdiffstats
path: root/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up
blob: 0c915da7d3fe4a28a1be1d14a4718199eadae021 (plain)
1
2
3
4
5
6
7
8
9
10
redirfd -r 0 /proc/cgroups
pipeline { s6-tail -n +2 }
pipeline { s6-cut -d"\t" -f1 }
pipeline { s6-grep -vF -- devices }
forstdin -d"\n" -- i
importas -u i i
if { s6-mkdir -p /sys/fs/cgroup/${i} }
foreground { s6-mount -t cgroup -o ${i} -- cgroup /sys/fs/cgroup/${i} }
importas -u ? ?
s6-test $? -le 1