Bug#1111039: Upgrading a system installed with Debian live from Bookworm to Trixie does not change /etc/os-release due to dpkg diversion
On Thu, 14 Aug 2025 at 16:04, Johannes Schauer Marin Rodrigues
<josch@debian.org> wrote:
>
> Hi,
>
> Quoting Luca Boccassi (2025-08-14 16:48:15)
> > On Thu, 14 Aug 2025 at 07:15, Johannes Schauer Marin Rodrigues
> > <josch@debian.org> wrote:
> > > Also: this is just addressing how to fix the problem going forward. The more
> > > pressing fix (I think) is to think about how to fix existing installations
> > > which have the wrong /etc/os-release because of this.
> > >
> > > Somebody (and not me within the next few days because I'm attending my
> > > brother's wedding on the weekend) would have to come up with a clever postinst
> > > script to clean up the mess and then get that into the next point release and
> > > hope that users uprade their Bookworm before upgrading to Trixie...
> >
> > This is not clever but does the job:
> >
> > if dpkg-divert --list /etc/os-release | grep -q os-release.debootstrap; then
> > dpkg-divert --quiet --local --remove --no-rename /etc/os-release
> > rm -f /etc/os-release
> > ln -s ../usr/lib/os-release /etc/os-release
> > fi
>
> thank you!
>
> > However, the main problem is where to have it - I just checked a calamares
> > installation, and there's no live-* packages unfortunately.
> >
> > Is there any calamares-specific package that is installed in these rootfses?
>
> I cannot confirm. Did you install using calamares from a Debian Live CD of
> Bookworm?
No, it was trixie/stable from https://www.debian.org/CD/live/
> I have these live-* packages installed on my disk after installing from Debian
> Live using Calamares:
>
> live-boot, live-boot-doc, live-boot-initramfs-tools, live-config,
> live-config-doc, live-config-systemd, live-task-base, live-task-gnome,
> live-task-localisation, live-task-localisation-desktop, live-task-recommended,
> live-tools
>
> Thanks!
>
> cheers, josch
Reply to: