Hi
Upstream efi/chainloader.c does not have 733 lines nor does it care about $root at all. You are probably using vendor patched grub, in which case you better direct this question to your vendor support channels. The code source is http://deb.debian.org/debian/pool/main/g/grub2/grub2_2.06.orig.tar.xz We apply various patches to this codebase and build it outselves. > Is there any way to kind of work around that error and run an "exit" command > if an error occours? > What is the exit code of chainloader command? If it is non-zero, you can check for it and do something else instead of boot. Could you provide an example of such a check? Like if in my example the chainloader returns anything that is not zero, then exit from grub. Thanks in advance Regards Mathias