I messed up and tried adding a grub menu entry to shutdown the computer using the "halt" command. I accidentally put the "halt" command outside the menu entry 'tags' and now the computer starts to boot and after post immediately shuts down again. From my understanding what is happening is grub is booting and running the script with my shutdown menu entry and just running the halt command as it is outside the menu entry tags. I have managed to boot the computer to a Ubuntu live USB and found what I thought was the script but after removing the command outside the tags and restarting the computer it shuts down like before. How can I edit or remove the menu entry while booted off the USB?
How to edit or remove a grub menu entry while booted off a live usb
bootdual-bootgrub2shutdownuefi
Best Answer
these are the steps:
Hope it is more clear now.
Again, good luck.