pveceph: switch repo sources to modern deb822 format

The single-line format is deprecated with Debian Trixie.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2025-07-08 16:17:05 +02:00
parent 84b22751f2
commit 405fcbc1e1

View file

@ -180,7 +180,13 @@ __PACKAGE__->register_method({
die "unsupported ceph version: $cephver"
if !exists($available_ceph_releases->{$cephver});
my $repolist = "deb ${cdn}/debian/ceph-${cephver} bookworm $repo\n";
my $repo_source = <<"EOF";
Types: deb
URIs: ${cdn}/debian/ceph-${cephver}
Suites: trixie
Components: ${repo}
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
my $rendered_release =
$available_ceph_releases->{$cephver}->{release} . ' ' . ucfirst($cephver);
@ -193,8 +199,7 @@ __PACKAGE__->register_method({
die "Aborting installation as requested\n" if !$continue;
}
# FIXME: change to deb822 sources format, use proxmox-apt via perlmod here?
PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.list", $repolist);
PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.sources", $repo_source);
if ($available_ceph_releases->{$cephver}->{unsupported}) {
if ($param->{'allow-experimental'}) {