Skip to content

Instantly share code, notes, and snippets.

@ivandeex
Forked from cpuguy83/custom_kernel
Last active August 29, 2015 14:26
Show Gist options
  • Save ivandeex/0452c8cca1a90b39e53c to your computer and use it in GitHub Desktop.
Save ivandeex/0452c8cca1a90b39e53c to your computer and use it in GitHub Desktop.
Boot Ubuntu with custom kernel on Digital Ocean
apt-get install kexec-tools
# Insert this at the top of /etc/init.d/rcS
if grep -qv ' kexeced$' /proc/cmdline ;then
kexec --load /vmlinuz --initrd=/initrd.img --append='root=LABEL=DOROOT kexeced' &&
mount -o ro,remount / &&
kexec -e
fi
# Then just use apt/dpkg to install whatever kernel you want, e.g. from http://kernel.ubuntu.com/~kernel-ppa/mainline/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment