[pve-devel] [PATCH proxmox-offline-mirror 7/8] wizard: simplify default Debian components
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Sep 8 15:16:48 CEST 2025
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
src/bin/proxmox-offline-mirror.rs | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/bin/proxmox-offline-mirror.rs b/src/bin/proxmox-offline-mirror.rs
index b14e680..89bd0bb 100644
--- a/src/bin/proxmox-offline-mirror.rs
+++ b/src/bin/proxmox-offline-mirror.rs
@@ -221,11 +221,10 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
let variant =
read_selection_from_tty("Select repository variant", variants, Some(0))?;
- let default_components = match release {
- Release::Bookworm | Release::Trixie => {
- "main contrib non-free non-free-firmware"
- }
- _ => "main contrib non-free",
+ let default_components = if release >= &Release::Bookworm {
+ "main contrib non-free non-free-firmware"
+ } else {
+ "main contrib non-free"
};
let components =
--
2.47.3
More information about the pve-devel
mailing list