GRUB 2.12~rc1 released

2023-07-10 Thread Daniel Kiper
Hi all, The GRUB maintainers are proud to announce the GRUB 2.12~rc1 that has been just released. We would like to thank all the people who have contributed to the project. The tarball is available at https://alpha.gnu.org/gnu/grub/grub-2.12~rc1.tar.xz and its signature at https://alpha.gnu.org

[PATCH v3] docs: Add missing assumption

2023-07-10 Thread Glenn Washburn
Also reword a prior sentence to be more clear. Fixes: 5a3d2b4742df (docs: Add debugging chapter to development documentation) Signed-off-by: Glenn Washburn --- v3: Fix rebase merge error (scripts -> script) v2: rebase --- docs/grub-dev.texi | 7 --- 1 file changed, 4 insertions(+), 3 deletio

[RFC PATCH] efi: Add build error for new EFI arches that do not specify INITRD_MAX_ADDRESS_OFFSET

2023-07-10 Thread Glenn Washburn
Non-x86 EFI architectures were using a INITRD_MAX_ADDRESS_OFFSET defined by the aarch64 architecture. This seems to generally work, as in no one has complained about this. However, the code is misleading. Architectures should explicitly set INITRD_MAX_ADDRESS_OFFSET. To avoid breaking current EFI a

[PATCH v2] luks2: Add support for LUKS2 in (proc)/luks_script

2023-07-10 Thread Glenn Washburn
The sector size in bytes is added to each line and it is allowed to be 5 decimal digits long, which covers the most common cases of 512 and 4096 byte sectors with space for an additional digit as future-proofing. The size allocation is updated to reflect this additional field, allow up to 5 charact

How to detect the amount of RAM on non-EFI platforms?

2023-07-10 Thread Cyan via Grub-devel
Hi, I am modifying GRUB for a Linux LiveOS, which boots into separate images depends on how much RAM presents on the system. GRUB has a memory map initialized, so I think it is relatively easy to do so. However, I discovered this method only works on EFI systems, if I load it on i386-pc (not a

[PATCH 2/4] grub-shell: Allow setting default timeout via GRUB_SHELL_DEFAULT_TIMEOUT envvar

2023-07-10 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 5cbe79447e99..9669b7227c10 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -225,7 +225,7

[PATCH 4/4] tests/util/grub-shell-luks-tester: Allow GRUB_SHELL_LUKS_DEFAULT_DEBUG and GRUB_TEST_DEFAULT_DEBUG to specify the debug level to grub-shell

2023-07-10 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- tests/util/grub-shell-luks-tester.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/util/grub-shell-luks-tester.in b/tests/util/grub-shell-luks-tester.in index 18920619a10a..850a20d6a7a8 100644 --- a/tests/util/grub-shell-luks-teste

[PATCH 0/4] More grub shell debugging

2023-07-10 Thread Glenn Washburn
These are fairly trivial patches making it easier to turn on debugging when running tests. Glenn Glenn Washburn (4): grub-shell: Add --verbose to mkrescue when $debug is greater than 2 grub-shell: Allow setting default timeout via GRUB_SHELL_DEFAULT_TIMEOUT envvar grub-shell: Allow sett

[PATCH 3/4] grub-shell: Allow setting the value of debug regardless of its previous state

2023-07-10 Thread Glenn Washburn
This allows an invocation of grub-shell to set the value of debug regardless of the global default environment variable GRUB_SHELL_DEFAULT_DEBUG. Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/grub-shell.in b/tests/util

[PATCH 1/4] grub-shell: Add --verbose to mkrescue when $debug is greater than 2

2023-07-10 Thread Glenn Washburn
Since this is fairly verbose output, do not enable first level of debug is turned on. Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index a0ca18e41c3f..5cbe7944

Re: [PATCH v3] docs: Add missing assumption

2023-07-10 Thread Oskari Pirhonen
On Mon, Jul 10, 2023 at 12:14:48 -0500, Glenn Washburn wrote: > Also reword a prior sentence to be more clear. > > Fixes: 5a3d2b4742df (docs: Add debugging chapter to development documentation) > Signed-off-by: Glenn Washburn > --- > v3: Fix rebase merge error (scripts -> script) > v2: rebase > -

[PATCH] util/grub.d/25_bli.in: fix shebang on unmerged-usr

2023-07-10 Thread Oskari Pirhonen
On an unmerged-usr system, grub-mkconfig errors out with the following error due to /usr/bin/sh not existing: /usr/sbin/grub-mkconfig: /etc/grub.d/25_bli: /usr/bin/sh: bad interpreter: No such file or directory Use a /bin/sh shebang to fix the error as well as match the other existing files. Si