Created
May 11, 2011 15:16
-
-
Save bnchdrff/966648 to your computer and use it in GitHub Desktop.
debian squeeze on ec2 grub fix
This file contains 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
# per http://groups.google.com/group/ec2debian/browse_thread/thread/cf14dbd5e04fab41/40097775d0c6c04d | |
apt-get update | |
apt-get remove --purge grub-legacy | |
apt-get install grub2 | |
# linux command line: blank | |
# grub install devices: blank | |
# continue: yes | |
apt-get --purge autoremove | |
# remove the old menu.lst | |
rm /boot/grub/menu.lst | |
# disable the default configs | |
chmod -x /etc/grub.d/* | |
# get the custom config | |
wget --no-check-certificate https://github.com/tomheady/ec2debian/raw/master/src/root/etc/grub.d/40_custom -O /etc/grub.d/40_custom | |
# enable the custom config | |
chmod +x /etc/grub.d/40_custom | |
update-grub | |
# link the new config to the place the pvgrub | |
ln -s /boot/grub/grub.cfg /boot/grub/menu.lst | |
apt-get -y dist-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment