SHA256
1
0
forked from pool/grub2
grub2/grub2-increase-crypttab-path-buffer.patch
Michael Chang 957b4bf706 Accepting request 1191065 from home:gary_lin:branches:Base:System
- Switch to '--no-hostonly' when creating the ZIPL initrd in the
  KIWI build environment to avoid some potential issues due to the
  missing modules
  * grub2-s390x-set-hostonly.patch

OBS-URL: https://build.opensuse.org/request/show/1191065
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=510
2024-08-02 08:19:09 +00:00

27 lines
873 B
Diff

From bbf0d5b3bcdde357de343032ecf358764faf0339 Mon Sep 17 00:00:00 2001
From: Gary Lin <glin@suse.com>
Date: Fri, 16 Dec 2022 09:19:50 +0800
Subject: [PATCH] commands/crypttab: increase the size of the path buffer
Allocate a larger buffer for the cryptsetup.d path in case the system
uses a long volume name.
Signed-off-by: Gary Lin <glin@suse.com>
---
grub-core/commands/crypttab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: grub-2.06/grub-core/commands/crypttab.c
===================================================================
--- grub-2.06.orig/grub-core/commands/crypttab.c
+++ grub-2.06/grub-core/commands/crypttab.c
@@ -11,7 +11,7 @@ static grub_err_t
grub_cmd_crypttab_entry (grub_command_t cmd __attribute__ ((unused)),
int argc, char **argv)
{
- char buf[64];
+ char buf[256];
const char *path = NULL;
if (argc == 2)