[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Bug#1111039: Upgrading a system installed with Debian live from Bookworm to Trixie does not change /etc/os-release due to dpkg diversion



Hi Jeroen,

On 18/08/25 05:42, Jeroen Diederen wrote:
I am using live-build to create my own distribution. I found a way to fix the bug as mentioned in this thread.

In live-build, in config/hooks/normal I added 9030-fix-base-files-bug- live-build.sh with the following content:

# config/hooks/chroot/01-fix-base-files-bug-live-build.sh
# Debian Bug#1111039: Upgrading a system installed with Debian live from Bookworm to Trixie
# does not change /etc/os-release due to dpkg diversion
#!/bin/sh
dpkg-divert --local --remove --no-rename --divert /etc/os- release.debootstrap /etc/os-release
apt-get install -y --reinstall base-files

With this hook the installed system does not have the dpkg-divert. It might also be useful in the creation of images for Apple Silicon.

Best regards,

Thank you! This is the workaround I've already implemented in [1] (see an email from a few days ago). Besides, live-build itself was fixed in version 1:20250814, which has been in unstable for a few days and will migrate to testing in a couple of days if everything goes right. The patch was backported to trixie and is waiting for approval from the release team [2], so hopefully the workaround will soon be unnecessary.

Cheers!


[1] https://salsa.debian.org/bananas-team/wip/debian-asahi-image/-/commit/10e0e1d0d49aeda3ee40c94ab645834520b859e2
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111122


Reply to: