Skip to content

Instantly share code, notes, and snippets.

@iMilnb
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iMilnb/3c7f2feb90475545f66c to your computer and use it in GitHub Desktop.
Save iMilnb/3c7f2feb90475545f66c to your computer and use it in GitHub Desktop.
Change the default boot kernel with `grub` 2.0.2beta
mykern=3.14.43-foo-bar-0.1-baz
dpkg -i linux-image-${mykern}_amd64.deb
sed -i 's/^GRUB_DEFAULT=.*/GRUB_DEFAULT=saved/' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
UUID=`blkid -s UUID -o value /dev/xvda1`
grub-set-default "gnulinux-advanced-$UUID>gnulinux-$mykern-advanced-$UUID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment