All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avnish Chouhan <avnish@linux.ibm.com>
To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: The development of GNU GRUB <grub-devel@gnu.org>,
	daniel.kiper@oracle.com,  brking@linux.ibm.com,
	meghanaprakash@in.ibm.com, mchang@suse.com, msuchanek@suse.com
Subject: Re: [PATCH v3] Mandatory install device check for PowerPC
Date: Mon, 13 Oct 2025 15:47:02 +0530	[thread overview]
Message-ID: <67d63fcd90517a08b3d07b022c97335a@linux.ibm.com> (raw)
In-Reply-To: <18e2fc1d3990570c673e74ce6ec6d73abc2e8699.camel@physik.fu-berlin.de>

On 2025-10-13 15:26, John Paul Adrian Glaubitz wrote:
> Hello Avnish,
> 
> On Mon, 2025-10-13 at 15:09 +0530, Avnish Chouhan wrote:
>> diff --git a/util/grub-install.c b/util/grub-install.c
>> index 0602465..f7389b3 100644
>> --- a/util/grub-install.c
>> +++ b/util/grub-install.c
>> @@ -1289,6 +1289,19 @@ main (int argc, char *argv[])
>>  	      is_prep = 0;
>>  	    }
>>  	}
>> +#if defined(__powerpc__)
>> +     else
>> +       {
>> +         /*
>> +	   * As the machine has been detected as PowerPC and not the 
>> PowerMac. We need to check
> 
> I have not looked at the patch context here, so I'm just asking: Where
> are you checking that the
> target machine is not a PowerMac where installation isn't performed on
> a device but into a directory?
> 
> Should there be a check whether --macppc-directory is set?

Hi Adrian,

The code block just above this "if (macppcdir)......" checks whether the 
machine is a "PowerMac" or not a "PowerMac". We have just added the else 
part of "if (macppcdir)" !

Thank you!

Regards,
Avnish Chouhan

> 
> Also, minor nitpick: It should be just "As the machine has been
> detected as PowerPC and not a PowerMac".
> 
>> +	   * whether the install_device has been mentioned while installing. 
>> If no device has been
>> +	   * mentioned, we need to exit and mark it as an error as the 
>> install_device is required for
>> +	   * PowerPC installation. An installation with no device mentioned 
>> may lead to corruptions.
>> +	   */
>> +          if (!install_device)
>> +            grub_util_error ("%s", _("install device isn't specified 
>> required for PowerPC"));
>> +       }
>> +#endif /* __powerpc__ */
>>      }
>> 
>>    size_t ndev = 0;
> 
> Adrian

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  parent reply	other threads:[~2025-10-13 10:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-13  9:39 [PATCH v3] Mandatory install device check for PowerPC Avnish Chouhan
2025-10-13  9:56 ` John Paul Adrian Glaubitz
2025-10-13 10:14   ` Michal Suchánek
2025-10-13 10:17   ` Avnish Chouhan [this message]
2025-10-13 10:07 ` Michal Suchánek
2025-10-15  8:52   ` Avnish Chouhan
2026-01-27 16:17     ` Michal Suchánek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67d63fcd90517a08b3d07b022c97335a@linux.ibm.com \
    --to=avnish@linux.ibm.com \
    --cc=brking@linux.ibm.com \
    --cc=daniel.kiper@oracle.com \
    --cc=glaubitz@physik.fu-berlin.de \
    --cc=grub-devel@gnu.org \
    --cc=mchang@suse.com \
    --cc=meghanaprakash@in.ibm.com \
    --cc=msuchanek@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.