I have a laptop with UEFI firmware, but had to set the firmware to boot in CSM legacy mode so that I could boot from USB. I'm multi booting three different linux distros, two of them are Ubuntu. The distros are all installed on their own Logical Volume. One of the distros has VirtualBox installed on it, I want it to be my GRUB default, which it currently is not.
I've edited the /etc/default/grub file with sudo as follows:
changed DEFAULT=0 to DEFAULT="saved" added new line below that... GRUB_SAVEDEFAULT="true"
I then saved the file with :wq!
I then entered the command... sudo update-grub
With no success after rebooting, I tried...
sudo chmod 744 /boot/grub/grub.cfg sudo update-grub sudo chmod 444 /boot/grub/grub.cfg
rebooted, still default boot order hasn't changed.
Installed grub-configuration GUI tool, it reflects all the changes I've made, however still when I reboot the machine, the default boot order hasn't changed.
I've also tried installing a GRUB2 them from GNOMElooks, I used the install script packaged with the download, it hasn't displayed on the GRUB boot splash screen either.
Here's the install.sh file that I executed that came with the GRUB2 theme download:
!/usr/bin/env bash
GRUB_NAME=""
function compile_grub() { echo -e "\e[1m\e[32m==> \e[97mApplying changes...\e[0m" ${GRUB_NAME}-mkconfig -o /boot/${GRUB_NAME}/grub.cfg echo -e "\e[1m\e[34m -> \e[97mTheme successfuly applied!" echo -e "\e[1m\e[34m -> \e[97mRestart your PC to check it out." sleep 2 }
function update_grub_file() { grep -v GRUB_THEME < /etc/default/grub > /tmp/clean_grub mv /tmp/clean_grub /etc/default/grub echo "GRUB_THEME=/boot/${GRUB_NAME}/themes/Atomic/theme.txt" >> /etc/default/grub }
function copy_atomic_files() { echo -e "\e[1m\e[32m==> \e[97mDownloading files...\e[0m" git clone https://github.com/lfelipe1501/Atomic-GRUB2-Theme /tmp/Atomic-GRUB2-Theme echo -e "\e[1m\e[32m==> \e[97mCopying files...\e[0m" cp -rf /tmp/Atomic-GRUB2-Theme/Atomic /boot/${GRUB_NAME}/themes/ }
function main() {
# Check user is root if [ $UID == 0 ]; then echo "Yes, You are root!" else echo "No, You must be root!" exit 1 fi
# Check which grub if [ -d "/boot/grub" ]; then GRUB_NAME="grub" else GRUB_NAME="grub2" fi copy_atomic_files
echo -e "\e[1m\e[97m You must set the theme in your GRUB config file," while : ;do if [ "$answer" = "g" ];then echo -e "\e[1m\e[97m You didn't give a valid option, try again." else read -p " Would you like to do it now? [y/n] " -t 10 answer echo -e "\e[0m" if [ "$answer" = "y" ];then # backup old grub file cp /etc/default/grub /tmp/grub$(date '+%m-%d-%y_%H:%M:%S') update_grub_file compile_grub break elif [ "$answer" = "n" ];then break fi let answer=g fi done
}
main "$@" exit 0