Skip to content

Commit dc4831e

Browse files
committed
guestfs / devconfig: allow for upgrade from Debian testing to forky
Debian Trixie (13) was just released as stable, and the testing repository has transitioned from codename 'trixie' to 'forky'. This causes apt-get update to fail with: E:Repository 'http://mirror.keystealth.org/debian testing InRelease' changed its 'Codename' value from 'trixie' to 'forky' Fix by adding a preliminary apt-get update with the --allow-releaseinfo-change flag to accept the repository metadata changes before installing packages. This ensures the playbook can handle Debian testing transitions gracefully. We do this for both the host through the guestfs playbook and and the target node through the devconfig playbook. Generated-by: Claude AI Reviewed-by: Chuck Lever <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 3957a2d commit dc4831e

File tree

2 files changed

+17
-0
lines changed
  • playbooks/roles
    • devconfig/tasks/install-deps/debian
    • guestfs/tasks/install-deps/debian

2 files changed

+17
-0
lines changed

playbooks/roles/devconfig/tasks/install-deps/debian/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
ignore_errors: yes
4646
tags: firstconfig
4747

48+
- name: Update apt cache accepting release info changes
49+
become: yes
50+
become_method: sudo
51+
ansible.builtin.command:
52+
cmd: apt-get update --allow-releaseinfo-change
53+
changed_when: false
54+
ignore_errors: true
55+
tags: firstconfig
56+
4857
- name: Upgrade Packages
4958
become: yes
5059
become_method: sudo

playbooks/roles/guestfs/tasks/install-deps/debian/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---
2+
- name: Update apt cache accepting release info changes
3+
become: true
4+
become_method: ansible.builtin.sudo
5+
ansible.builtin.command:
6+
cmd: apt-get update --allow-releaseinfo-change
7+
changed_when: false
8+
ignore_errors: true
9+
210
- name: Install guestfs dependencies for Debian
311
become: true
412
become_method: ansible.builtin.sudo

0 commit comments

Comments
 (0)