[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Mandatory install device check for PowerPC
From: |
Avnish Chouhan |
Subject: |
[PATCH] Mandatory install device check for PowerPC |
Date: |
Mon, 27 May 2024 19:07:19 +0530 |
This patch adds a check on install_device while installing grub for PowerPC.
If install_device is not mentioned in grub2-install, the error will be thrown.
Running grub2-install on PowerPC without the install_device may
result in boot corruption.
Signed-off-by: Avnish Chouhan <avnish@linux.ibm.com>
---
util/grub-install.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util/grub-install.c b/util/grub-install.c
index 5babc7a..192d2a8 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -970,6 +970,8 @@ main (int argc, char *argv[])
case GRUB_INSTALL_PLATFORM_POWERPC_IEEE1275:
if (install_device)
is_prep = 1;
+ else
+ grub_util_error ("%s", _("install device isn't specified"));
break;
case GRUB_INSTALL_PLATFORM_MIPS_ARC:
case GRUB_INSTALL_PLATFORM_MIPSEL_ARC:
--
2.39.3
- [PATCH] Mandatory install device check for PowerPC,
Avnish Chouhan <=