Skip to content

Instantly share code, notes, and snippets.

@ziozzang
Last active April 21, 2018 00:23
Show Gist options
  • Select an option

  • Save ziozzang/82062b7abd188af5f25767a6098668e8 to your computer and use it in GitHub Desktop.

Select an option

Save ziozzang/82062b7abd188af5f25767a6098668e8 to your computer and use it in GitHub Desktop.
#Block Kernel Update. /boot partition size is too small... :(
apt-mark hold `uname -r` linux-image-generic linux-headers-generic
# Partition Resize
pvscan && vgextend localhost-vg /dev/sda3 && lvextend -l +100%FREE /dev/localhost-vg/root && resize2fs /dev/localhost-vg/root
# Set Disk Timeout.
#echo 300 > /sys/block/sda/device/timeout
sed -i 's,^exit,#exit,' /etc/rc.local
echo "swapoff -a" >> /etc/rc.local
echo kernel.panic = 3 > /etc/sysctl.d/99-panic.conf
sed -i 's/errors=remount-ro/errors=panic/' /etc/fstab
# Turn off Swap Partition.
swapoff -a
# Install Docker
curl https://get.docker.com | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment