]> git.proxmox.com Git - proxmox-offline-mirror.git/blobdiff - src/bin/proxmox-offline-mirror.rs
add non-free-firmware to bookworm default components
[proxmox-offline-mirror.git] / src / bin / proxmox-offline-mirror.rs
index f5be2c087c5cb5aaa0c0de68e4ac7c0e08bf17ba..9d37ea69fb85ebe5a3f2792b7d3dd99f70ba6ca9 100644 (file)
@@ -235,9 +235,15 @@ 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 => "main contrib non-free non-free-firmware",
+                    _ => "main contrib non-free"
+                };
+
                 let components = read_string_from_tty(
                     "Enter repository components",
-                    Some("main contrib non-free"),
+                    Some(default_components),
                 )?;
 
                 derive_debian_repo(release, variant, &components)?