From: Erik Fastermann <e.fastermann@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Erik Fastermann <e.fastermann@proxmox.com>
Subject: [PATCH proxmox-offline-mirror] fix #7762: wizard: add PDM support
Date: Thu, 23 Jul 2026 11:24:37 +0200 [thread overview]
Message-ID: <20260723092437.93686-1-e.fastermann@proxmox.com> (raw)
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>
---
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,
};
--
2.47.3
reply other threads:[~2026-07-23 9:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260723092437.93686-1-e.fastermann@proxmox.com \
--to=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.