This post is mainly so I remember how this worked myself, but I maybe it’ll be useful for others as well. boot-repair is a tool that helps you get your GRUB settings right post installation. I need it to get dual installations right.
Ready-made script (installs requirements, adds PPA and installs boot-repair itself):
apt-get install software-properties-common python-software-properties -y add-apt-repository ppa:yannubuntu/boot-repair # sed -i 's/wheezy/trusty/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-wheezy.list sed -i 's/jessie/trusty/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-jessie.list apt-get update; apt-get install -y boot-repair; boot-repair
- Copy code into a new file, e.g., via
vim boot-repair-insta.sh(use your favorite editor obviously; nano, mousepad, gedit are options you can try ad-hoc. If you’re stuck here, you may want to reconsider dual booting however; sorry)
- Execute via
- Adjust debian and ubuntu versions before using (jessie / wheezy / trusty here)