[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: Handle errors when booting
From: |
Mathias Radtke |
Subject: |
AW: Handle errors when booting |
Date: |
Mon, 29 Jan 2024 12:01:12 +0000 |
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