public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Chuck Lever <cel@kernel.org>, Daniel Gomez <da.gomez@kruces.com>,
	kdevops@lists.linux.dev
Cc: Luis Chamberlain <mcgrof@kernel.org>
Subject: [PATCH 4/8] guestfs / devconfig: allow for upgrade from Debian testing to forky
Date: Mon, 11 Aug 2025 13:12:26 -0700	[thread overview]
Message-ID: <20250811201230.2145164-5-mcgrof@kernel.org> (raw)
In-Reply-To: <20250811201230.2145164-1-mcgrof@kernel.org>

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
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 .../roles/devconfig/tasks/install-deps/debian/main.yml   | 9 +++++++++
 .../roles/guestfs/tasks/install-deps/debian/main.yml     | 8 ++++++++
 2 files changed, 17 insertions(+)

diff --git a/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml b/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml
index 6ffe00f..140c3a1 100644
--- a/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml
+++ b/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml
@@ -45,6 +45,15 @@
   ignore_errors: yes
   tags: firstconfig
 
+- name: Update apt cache accepting release info changes
+  become: yes
+  become_method: sudo
+  ansible.builtin.command:
+    cmd: apt-get update --allow-releaseinfo-change
+  changed_when: false
+  ignore_errors: true
+  tags: firstconfig
+
 - name: Upgrade Packages
   become: yes
   become_method: sudo
diff --git a/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml b/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml
index 0529db6..dc69c65 100644
--- a/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml
+++ b/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml
@@ -1,4 +1,12 @@
 ---
+- name: Update apt cache accepting release info changes
+  become: true
+  become_method: ansible.builtin.sudo
+  ansible.builtin.command:
+    cmd: apt-get update --allow-releaseinfo-change
+  changed_when: false
+  ignore_errors: true
+
 - name: Install guestfs dependencies for Debian
   become: true
   become_method: ansible.builtin.sudo
-- 
2.47.2


  parent reply	other threads:[~2025-08-11 20:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11 20:12 [PATCH 0/8] various fixes Luis Chamberlain
2025-08-11 20:12 ` [PATCH 1/8] libvirt: fix PCI-E passthrough configuration after Vagrant removal Luis Chamberlain
2025-08-11 20:12 ` [PATCH 2/8] gen-dynamic-pci: fix PCI passthrough target guest default value Luis Chamberlain
2025-08-11 20:12 ` [PATCH 3/8] gen-dynamic-pci: add GPU detection and naming support Luis Chamberlain
2025-08-11 20:12 ` Luis Chamberlain [this message]
2025-08-11 20:12 ` [PATCH 5/8] guestfs: add OVMF package for UEFI firmware support Luis Chamberlain
2025-08-11 20:12 ` [PATCH 6/8] gen_nodes: fix duplicate pcipassthrough keys in YAML output Luis Chamberlain
2025-08-11 20:12 ` [PATCH 7/8] gen_nodes: fix YAML indentation in pcipassthrough template Luis Chamberlain
2025-08-11 20:12 ` [PATCH 8/8] guestfs: fix PCIe passthrough device attachment Luis Chamberlain
2025-08-11 20:38 ` [PATCH 0/8] various fixes Chuck Lever
2025-08-11 21:31   ` Luis Chamberlain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250811201230.2145164-5-mcgrof@kernel.org \
    --to=mcgrof@kernel.org \
    --cc=cel@kernel.org \
    --cc=da.gomez@kruces.com \
    --cc=kdevops@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox