Skip to content

Instantly share code, notes, and snippets.

@jessetane
Created July 1, 2014 16:21
Show Gist options
  • Save jessetane/eeff4a2f7403c168204a to your computer and use it in GitHub Desktop.
Save jessetane/eeff4a2f7403c168204a to your computer and use it in GitHub Desktop.
+ c=jt
+ configfile=/var/lib/lxc/jt/config
+ d=/sys/fs/cgroup
+ d2=/usr/lib/x86_64-linux-gnu/lxc//sys/fs/cgroup
+ lxcpath=
+ '[' '!' -d /sys/fs/cgroup ']'
+ mount -n -t tmpfs tmpfs /usr/lib/x86_64-linux-gnu/lxc//sys/fs/cgroup
++ /bin/ls /sys/fs/cgroup
+ for dir in '`/bin/ls $d`'
+ '[' cgmanager = devices ']'
+ mkdir -p /sys/fs/cgroup/cgmanager/lxc/jt/jt.real
+ echo 1
+ mkdir -p /usr/lib/x86_64-linux-gnu/lxc//sys/fs/cgroup/cgmanager
+ mount -n --bind /sys/fs/cgroup/cgmanager/lxc/jt/jt.real /usr/lib/x86_64-linux-gnu/lxc//sys/fs/cgroup/cgmanager
+ for dir in '`/bin/ls $d`'
+ '[' systemd = devices ']'
+ mkdir -p /sys/fs/cgroup/systemd/lxc/jt/jt.real
+ echo 1
+ mkdir -p /usr/lib/x86_64-linux-gnu/lxc//sys/fs/cgroup/systemd
+ mount -n --bind /sys/fs/cgroup/systemd/lxc/jt/jt.real /usr/lib/x86_64-linux-gnu/lxc//sys/fs/cgroup/systemd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment