GRUB does broken installs when compiled -s
Compiling GRUB as -Os -s results in grub-install producing a broken system that says it can't find the target device during boot and gives a recovery shell. It probably stripped a module too much. Find out what's going on, or just detect -s and remove/override it in the tixbuildinfo magic.