public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Aaron Lauterer <a.lauterer@proxmox.com>
To: Christoph Heiss <c.heiss@proxmox.com>
Cc: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH installer 4/4] fetch-answer: use partition label from fetch config instead of hardcoded
Date: Fri, 8 Nov 2024 10:30:18 +0100	[thread overview]
Message-ID: <69f3c439-9e9c-4201-b046-b7cbf3884054@proxmox.com> (raw)
In-Reply-To: <6puwldfczbsxkh7etz5pn2dgyaaodt3yg6rxuafud3jeqv3cp4@7pfyraxjjpxq>



On  2024-11-08  10:28, Christoph Heiss wrote:
> Thanks for the review!
> 
> On Thu, Nov 07, 2024 at 04:28:25PM +0100, Aaron Lauterer wrote:
>> only small nits inline
>>
>> Tested-By: Aaron Lauterer <a.lauterer@proxmox.com>
>> Reviewed-By: Aaron Lauterer <a.lauterer@proxmox.com>
>>
>> On  2024-10-18  13:59, Christoph Heiss wrote:
>>> [..]
>>> diff --git a/proxmox-fetch-answer/src/fetch_plugins/partition.rs b/proxmox-fetch-answer/src/fetch_plugins/partition.rs
>>> index cbfe2d5..c68dc59 100644
>>> --- a/proxmox-fetch-answer/src/fetch_plugins/partition.rs
>>> +++ b/proxmox-fetch-answer/src/fetch_plugins/partition.rs
>>> @@ -9,17 +9,16 @@ use std::{
>>>    static ANSWER_FILE: &str = "answer.toml";
>>>    static ANSWER_MP: &str = "/mnt/answer";
>>>    // FAT can only handle 11 characters, so shorten Automated Installer Source to AIS
>>
>> this comment is now dangling. we could move that to the definition of the
>> default value for the new parameter
> 
> Yep, good catch!
> 
> Also, while reading this, seems nowhere is checked whether the
> user-supplied value is at max 11 characters long -- I'll add that for v2
> too.

Too be honest, do we need to do that? For the default it is important, 
but users can use other FS that might allow for longer labels and if the 
kernel of the install live system can handle it, all is good.
> 
>>> [..]
>>> @@ -74,14 +73,14 @@ fn scan_partlabels(partlabel: &str, search_path: &str) -> Result<PathBuf> {
>>>        bail!("Could not find partition for label '{partlabel}'");
>>>    }
>>> -/// Will search and mount a partition/FS labeled PARTLABEL (proxmox-ais) in lower or uppercase
>>> -/// to ANSWER_MP
>>> -fn mount_proxmoxinst_part() -> Result<String> {
>>> +/// Will search and mount a partition/FS labeled labeled `part_label` in lower or uppercase to
>>
>> one `labeled` too much :)
> 
> Thx!



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  reply	other threads:[~2024-11-08  9:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18 11:59 [pve-devel] [PATCH installer 0/4] auto-install-assistant: allow specifying 'fetch-from' partition label Christoph Heiss
2024-10-18 11:59 ` [pve-devel] [PATCH installer 1/4] auto-install-assistant: add new parameter to specify " Christoph Heiss
2024-10-18 11:59 ` [pve-devel] [PATCH installer 2/4] fetch-answer: refactor cli argument parsing Christoph Heiss
2024-10-18 11:59 ` [pve-devel] [PATCH installer 3/4] fetch-answer: partition: also search for exact-matching partition label Christoph Heiss
2024-10-18 11:59 ` [pve-devel] [PATCH installer 4/4] fetch-answer: use partition label from fetch config instead of hardcoded Christoph Heiss
2024-11-07 15:28   ` Aaron Lauterer
2024-11-08  9:28     ` Christoph Heiss
2024-11-08  9:30       ` Aaron Lauterer [this message]
2024-11-08  9:48         ` Christoph Heiss
2024-11-07 15:29 ` [pve-devel] [PATCH installer 0/4] auto-install-assistant: allow specifying 'fetch-from' partition label Aaron Lauterer

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=69f3c439-9e9c-4201-b046-b7cbf3884054@proxmox.com \
    --to=a.lauterer@proxmox.com \
    --cc=c.heiss@proxmox.com \
    --cc=pve-devel@lists.proxmox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal