github.com/schwarzm/garden-linux@v0.0.0-20150507151835-33bca2147c47/packer/garden-ci/scripts/update_grub_config.sh (about) 1 set -ex 2 3 cat > /etc/default/grub <<\EOS 4 # If you change this file, run 'update-grub' afterwards to update 5 # /boot/grub/grub.cfg. 6 # For full documentation of the options in this file, see: 7 # info -f grub -n 'Simple configuration' 8 9 GRUB_DEFAULT=0 10 GRUB_HIDDEN_TIMEOUT=0 11 GRUB_HIDDEN_TIMEOUT_QUIET=true 12 GRUB_TIMEOUT=10 13 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` 14 GRUB_CMDLINE_LINUX_DEFAULT="quiet" 15 GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" 16 17 # Uncomment to enable BadRAM filtering, modify to suit your needs 18 # This works with Linux (no patch required) and with any kernel that obtains 19 # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 20 #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" 21 22 # Uncomment to disable graphical terminal (grub-pc only) 23 #GRUB_TERMINAL=console 24 25 # The resolution used on graphical terminal 26 # note that you can use only modes which your graphic card supports via VBE 27 # you can see them in real GRUB with the command `vbeinfo' 28 #GRUB_GFXMODE=640x480 29 30 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux 31 #GRUB_DISABLE_LINUX_UUID=true 32 33 # Uncomment to disable generation of recovery mode menu entries 34 #GRUB_DISABLE_RECOVERY="true" 35 36 # Uncomment to get a beep at grub start 37 #GRUB_INIT_TUNE="480 440 1" 38 EOS 39 40 update-grub