My guess is lodygin fails to boot from the network, and cycles all the way to booting from Hard drive (0004), in which case, since shim and everything really /are/ installed on disk, it gets run to recreate the missing "ubuntu" entry.
Assuming you can reproduce this issue easily, can you check if it can be reproduced after removing the 0004 boot entry? sudo efibootmgr -b -B 0004 ** Changed in: grub2 (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1790586 Title: The proposed grub package in Trusty / Bionic overrides the boot order on a MaaS deployed system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1790586/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs