Hide Forgot
Description of problem: The following line is AFAIU not valid for legacy grub http://gerrit.ovirt.org/gitweb?p=ovirt-node.git;a=blob;f=scripts/ovirt-post#l85 This could lead to an upgrade failure of the node.
After systemd patchset landed, "savedefault" is now at http://gerrit.ovirt.org/gitweb?p=ovirt-node.git;a=blob;f=scripts/ovirt-init-functions.sh;h=e1a09df64844c3726ac1241e02697e19d1cd6226;hb=HEAD#l1262 savedefault should be removed, and I think intended behavior (fallback after image update fails to boot) is default in Fedora grub2, there's GRUB_DEFAULT=saved in /etc/default/grub But not sure if this has been tested with ovirt-node after migration to grub2?
We need to conditionalize that statement then. savedefault is still valid for distros using legacy grub, some of which we still use.
defer to 2.4 so we can test fallback
The following patch just executes the lagacy grub command if no grub2 is found. http://gerrit.ovirt.org/4173 Currently the code just greps the line for the GRUB_DEFAULT param and adds it to the log file. It might make sense to additionally update this param if needed.