diff options
author | Andy Lutomirski <luto@kernel.org> | 2019-06-16 17:18:53 -0700 |
---|---|---|
committer | Andy Lutomirski <luto@kernel.org> | 2019-06-16 17:18:53 -0700 |
commit | 48e60c02329cde624626599c5e71f5bae1074e61 (patch) | |
tree | 718ec47da5e4aab12ac6e687c7580cdb80c0fcbc | |
parent | 40cec5386aedce4477d1561aa87ae580af741887 (diff) | |
parent | f645761dfbbe7f2ab44bc5f6651cda35c2bf1165 (diff) | |
download | virtme-48e60c02329cde624626599c5e71f5bae1074e61.tar.gz |
Merge branch 'cgroupv2' of git://github.com/arighi/virtme
PR #26
Signed-off-by: Andy Lutomirski <luto@kernel.org>
-rwxr-xr-x | virtme/guest/virtme-init | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init index 44a018a..d0456b3 100755 --- a/virtme/guest/virtme-init +++ b/virtme/guest/virtme-init @@ -122,6 +122,11 @@ fi mount -t configfs configfs /sys/kernel/config &>/dev/null mount -t debugfs debugfs /sys/kernel/debug &>/dev/null +# Set up cgroup mount points (mount cgroupv2 hierarchy by default) +mount -t tmpfs tmpfs /sys/fs/cgroup &>/dev/null +mkdir /sys/fs/cgroup/unified +mount -t cgroup2 cgroup2 /sys/fs/cgroup/unified &>/dev/null + # Set up filesystems that live in /dev mkdir -p -m 0755 /dev/shm /dev/pts mount -t devpts -o gid=tty,mode=620,noexec,nosuid devpts /dev/pts |