If I use grub2-reboot to ask for a one-off boot, then testart the machine using ipmitool chassis power cycle, it behaves very strangely. The correct next_entry setting is written to /boot/grub2/grubenv, but it has no effect, and it is still there when the system comes up.If I do the exact same thing a second time, the correct entry is booted and the next_entry is removed as it should be.This pattern repeats, with the correct entry being chosen every second time.Replacing the ipmitool with a soft reboot (using reboot) makes it work.Is this expected behaviour? Is power cycling with ipmitool likely to break anything else? I can get away with a soft reboot here, but elsewhere a power cycle is necessary for resetting some peripherals.
Does power cycling with ipmitool break Grub2?
grub2;reboot