Last active
August 29, 2015 14:24
-
-
Save iMilnb/3c7f2feb90475545f66c to your computer and use it in GitHub Desktop.
Change the default boot kernel with `grub` 2.0.2beta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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