all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-offline-mirror] add non-free-firmware to bookworm default components
@ 2023-07-17 14:01 Stefan Sterz
  2023-07-19 10:26 ` [pbs-devel] applied: " Fabian Grünbichler
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Sterz @ 2023-07-17 14:01 UTC (permalink / raw)
  To: pbs-devel

this adds the non-free-firmware component introduced with debian
bookworm [1] to the default components for bookworm mirrors. since
this new component is a subset [2] of the previous "non-free"
component add it here too to keep the same set of packages available.

[1]: https://wiki.debian.org/Firmware#Debian_12_.28bookworm.29_and_later
[2]: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#non-free-split

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
 src/bin/proxmox-offline-mirror.rs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/proxmox-offline-mirror.rs b/src/bin/proxmox-offline-mirror.rs
index f5be2c0..9d37ea6 100644
--- a/src/bin/proxmox-offline-mirror.rs
+++ b/src/bin/proxmox-offline-mirror.rs
@@ -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)?
-- 
2.39.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-offline-mirror] add non-free-firmware to bookworm default components
  2023-07-17 14:01 [pbs-devel] [PATCH proxmox-offline-mirror] add non-free-firmware to bookworm default components Stefan Sterz
@ 2023-07-19 10:26 ` Fabian Grünbichler
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2023-07-19 10:26 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion

On July 17, 2023 4:01 pm, Stefan Sterz wrote:
> this adds the non-free-firmware component introduced with debian
> bookworm [1] to the default components for bookworm mirrors. since
> this new component is a subset [2] of the previous "non-free"
> component add it here too to keep the same set of packages available.
> 
> [1]: https://wiki.debian.org/Firmware#Debian_12_.28bookworm.29_and_later
> [2]: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#non-free-split
> 
> Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
> ---
>  src/bin/proxmox-offline-mirror.rs | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/src/bin/proxmox-offline-mirror.rs b/src/bin/proxmox-offline-mirror.rs
> index f5be2c0..9d37ea6 100644
> --- a/src/bin/proxmox-offline-mirror.rs
> +++ b/src/bin/proxmox-offline-mirror.rs
> @@ -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)?
> -- 
> 2.39.2
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-19 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17 14:01 [pbs-devel] [PATCH proxmox-offline-mirror] add non-free-firmware to bookworm default components Stefan Sterz
2023-07-19 10:26 ` [pbs-devel] applied: " Fabian Grünbichler

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