grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] grub-install: set point of no return for powerpc-ieee1275 instal


From: Michael Chang
Subject: [PATCH] grub-install: set point of no return for powerpc-ieee1275 install
Date: Thu, 25 Aug 2022 14:05:01 +0800

The point of no return is used to define a point where no change should
be reverted in a wake of fatal error that consequently aborts the
process. The powerpc-ieee1275 install apparently missed this point of no
return defintion that newly installed modules could be inadvertently
reverted after successful image embedding so that boot failure is
incurred due to inconsistent state.

Signed-off-by: Michael Chang <mchang@suse.com>
---
 util/grub-install.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util/grub-install.c b/util/grub-install.c
index 7b04bd3c53..1c0ece7f19 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -1835,6 +1835,7 @@ main (int argc, char *argv[])
            {
              if (write_to_disk (ins_dev, imgfile))
                grub_util_error ("%s", _("failed to copy Grub to the PReP 
partition"));
+             grub_set_install_backup_ponr ();
            }
          else
            {
-- 
2.35.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]