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,