all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Nicolas Frey" <n.frey@proxmox.com>
To: "Erik Fastermann" <e.fastermann@proxmox.com>,
	<pve-devel@lists.proxmox.com>
Subject: Re: [PATCH proxmox-offline-mirror] fix #7762: wizard: add PDM support
Date: Thu, 13 Aug 2026 16:19:53 +0200	[thread overview]
Message-ID: <DKNVRBR59ZTP.1GKZ5HR5FYWJ@proxmox.com> (raw)
In-Reply-To: <20260723092437.93686-1-e.fastermann@proxmox.com>

hi, thanks for the patch!

tested the changes on PDM, creating a pdm-no-subscription
mirror on a medium and adding a subscription key also worked using the
wizard. changes LGTM too, so consider this:

Reviewed-by: Nicolas Frey <n.frey@proxmox.com>
Tested-by: Nicolas Frey <n.frey@proxmox.com>

On Thu Jul 23, 2026 at 11:24 AM CEST, Erik Fastermann wrote:
> Offer Proxmox Datacenter Manager as a distro in the interactive
> setup so its repositories can be mirrored offline.
>
> Signed-off-by: Erik Fastermann <e.fastermann@proxmox.com>
Fixes: https://bugzilla.proxmox.com/show_bug.cgi?id=7762
> ---
>  src/bin/proxmox-offline-mirror.rs | 25 ++++++++++++++++++++++++-
>  1 file changed, 24 insertions(+), 1 deletion(-)
>
> diff --git a/src/bin/proxmox-offline-mirror.rs b/src/bin/proxmox-offline-mirror.rs
> index 90a14a9..7b7a506 100644
> --- a/src/bin/proxmox-offline-mirror.rs
> +++ b/src/bin/proxmox-offline-mirror.rs
> @@ -27,6 +27,7 @@ use proxmox_offline_mirror_cmds::*;
>  enum Distro {
>      Debian,
>      Pbs,
> +    Pdm,
>      Pmg,
>      Pve,
>      PveCeph,
> @@ -37,6 +38,7 @@ impl Display for Distro {
>          match self {
>              Distro::Debian => write!(f, "debian"),
>              Distro::Pbs => write!(f, "pbs"),
> +            Distro::Pdm => write!(f, "pdm"),
>              Distro::Pmg => write!(f, "pmg"),
>              Distro::Pve => write!(f, "pve"),
>              Distro::PveCeph => write!(f, "ceph"),
> @@ -212,6 +214,7 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
>          let distros = &[
>              (Distro::Pve, "Proxmox VE"),
>              (Distro::Pbs, "Proxmox Backup Server"),
> +            (Distro::Pdm, "Proxmox Datacenter Manager"),
>              (Distro::Pmg, "Proxmox Mail Gateway"),
>              (Distro::PveCeph, "Proxmox Ceph"),
>              (Distro::Debian, "Debian"),
> @@ -223,7 +226,12 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
>              (Release::Bookworm, "Bookworm"),
>              (Release::Bullseye, "Bullseye"),
>          ];
> -        let release = read_selection_from_tty("Select release", releases, Some(0))?;
> +        let release = match dist {
> +            // PDM (version 1.0 or higher) is only published for Trixie, so
> +            // there is nothing to select.
> +            Distro::Pdm => &Release::Trixie,
> +            _ => read_selection_from_tty("Select release", releases, Some(0))?,
> +        };
>
>          let mut add_debian_repo = false;
>
> @@ -354,6 +362,21 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
>                      (Distro::Pbs, &ProxmoxVariant::Enterprise) => Some(ProductType::Pbs),
>                      (Distro::Pmg, &ProxmoxVariant::Enterprise) => Some(ProductType::Pmg),
>                      (Distro::Pve, &ProxmoxVariant::Enterprise) => Some(ProductType::Pve),
> +                    (Distro::Pdm, &ProxmoxVariant::Enterprise) => {
> +                        // PDM has no dedicated subscription of its own; its enterprise
> +                        // repository is unlocked by any Basic (or higher) PVE or PBS
> +                        // subscription key.
> +                        let products = &[(ProductType::Pve, "PVE"), (ProductType::Pbs, "PBS")];
> +                        Some(
> +                            read_selection_from_tty(
> +                                "Select subscription (Basic or higher) to use \
> +                                    for the PDM enterprise repository",
> +                                products,
> +                                Some(0),
> +                            )?
> +                            .clone(),
> +                        )
> +                    }
>                      _ => None,
>                  };
>




      reply	other threads:[~2026-08-13 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23  9:24 [PATCH proxmox-offline-mirror] fix #7762: wizard: add PDM support Erik Fastermann
2026-08-13 14:19 ` Nicolas Frey [this message]

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=DKNVRBR59ZTP.1GKZ5HR5FYWJ@proxmox.com \
    --to=n.frey@proxmox.com \
    --cc=e.fastermann@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 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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal