]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
util/grub-install: Set point of no return for powerpc-ieee1275 install
authorMichael Chang <mchang@suse.com>
Thu, 25 Aug 2022 06:05:01 +0000 (14:05 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 11 Oct 2022 12:57:36 +0000 (14:57 +0200)
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 definition 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>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-install.c

index 7b04bd3c534b6f70302adf9340e2216a8c31eb2c..1c0ece7f19e0a4a11bee85d1b1f9f63940ad9ab6 100644 (file)
@@ -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
            {