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:
parent
84b22751f2
commit
405fcbc1e1
1 changed files with 8 additions and 3 deletions
|
|
@ -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'}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue