On Wed, Oct 19, 2016 at 4:43 PM, Joakim Tjernlund <joakim.tjernl...@infinera.com> wrote: > On Wed, 2016-10-19 at 15:21 -0400, Tom H wrote: >> >> but it looks like, unlike for grub-legacy, you need a grub config file >> ("/boot/grub{,2}/grub.cfg") to exist. > > That is reasonable, to create a new entry one needs to copy the previous and > replace the > kernel. > > Would be nice if someone could confirm this though.
if [[ -z "${GRUB_CONF}" ]]; then print_error 1 "Error! Grub2 configuration file does not exist, please ensure grub2 is correctly setup first." return 0 fi