Le lun. 27 mai 2024, 16:38, Avnish Chouhan <avn...@linux.ibm.com> a écrit :
> 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. > This breaks PowerMac booting which doesn't have install device. > > Signed-off-by: Avnish Chouhan <avn...@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 > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel