[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



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,
Jeroen Diederen

NoisyCoil schreef op 2025-08-14 18:31:
On 14/08/25 00:33, NoisyCoil wrote:
I'll try and see if I can work around it for future installations to minimize the number of affected users, before it gets fixed in live-build.

The issue is fixed (or rather, worked around) in new installations.

Old trixie installations will not be affected in a meaningful way
before 2027 (they will still declare themselves to be version 13.0
instead of 13.x after the first trixie point release, but this is no
big deal), so I'll wait and see what fix is proposed by live-build.

As for old testing installations, testing becomes forky effective
today with an update of base-files to version 14 [1,2], so they are
already affected. To fix this issue manually in testing, one can
execute

```
sudo dpkg-divert --local --remove --no-rename --divert
/etc/os-release.debootstrap /etc/os-release
sudo apt-get install -y --reinstall base-files
```
I hope the fix for trixie, when implemented, will propagate to testing
too, so this is unnecessary. Again, let's see what happens.

Cheers!


[1]
https://tracker.debian.org/news/1653113/accepted-base-files-14-source-into-unstable/
[2] https://tracker.debian.org/news/1655190/base-files-14-migrated-to-testing/


Reply to: