summaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-05-04 00:10:26 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-05-04 00:10:26 +0000
commit7bb2006007c1996f33758e41db070252d4d3607f (patch)
tree3dc03d4f6a8867742961a3dea9ecc96c52d00a10 /layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up
parent1202c964c4e91083a3c60b41b9c11e220bfa759d (diff)
downloadlh-bootstrap-7bb2006007c1996f33758e41db070252d4d3607f.tar.xz
Make a lean and mean version, as a basis for filling an initramfs
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up')
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up10
1 files changed, 0 insertions, 10 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up
deleted file mode 100644
index 0c915da..0000000
--- a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up
+++ /dev/null
@@ -1,10 +0,0 @@
-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