012-grub-opts.sh 140 B

123456
  1. #!/bin/sh
  2. sed -e 's|GRUB_CMDLINE_LINUX="|GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1|g' \
  3. -i /etc/default/grub
  4. update-grub