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

Bug#1111039: marked as done (Upgrading a system installed with Debian live from Bookworm to Trixie does not change /etc/os-release due to dpkg diversion)



Your message dated Fri, 22 Aug 2025 10:47:10 +0000
with message-id <E1upPIc-00GlBd-2y@fasolo.debian.org>
and subject line Bug#1111039: fixed in live-build 1:20250505+deb13u1
has caused the Debian Bug report #1111039,
regarding Upgrading a system installed with Debian live from Bookworm to Trixie does not change /etc/os-release due to dpkg diversion
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1111039: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111039
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: live-build
Version: 1:20240810
Severity: serious
X-Debbugs-Cc: bluca@debian.org

Hi,

I'm letting this bug have RC severity because:

 - it interferes with files installed by another package (base-files) without
   coordination on actual user installations (not just during a live session)
 - the information "what release am i on" is a crucial part of what the OS
   should report correctly to the user (and to utilities querying the
   information)

I'm CC-ing Luca because the problem got introduced by this commit in
live-build:

https://salsa.debian.org/live-team/live-build/-/commit/24bfe093f82ccc134ab5d91fb4058ee0b52ec942

The commit is over a year old but the problem only showed now as users are
upgrading their installations that they made from a Debian Live CD from
Bookworm to Trixie.

The problem is this dpkg diversion:

mmmm@mmmm-linuxdummyvirt:~$ dpkg-divert --list | grep os-release
local diversion of /etc/os-release to /etc/os-release.debootstrap

According to the commit message the diversion is supposed to guard against
potential upgrades of base-files overwriting the contents of /etc/os-release
with its own contents. The problem is, that the calamares installer which can
be used from a Debian Live CD to permanently install Debian, creates a copy of
the Debian Live system and installs that to the disk. This includes the
diversion which was only meant for the live system itself.

There are multiple things to fix here:

 1. live-build itself should clean up the diversion after it is done installing
    (and potentially upgrading) the packages that end up on the live CD. The
    diversion is not useful anymore on the running Debian Live system itself.
    Once that is done, new installations made with Calamares will no longer
    include that diversion for the upgrade from Trixie to Forky.

 2. existing installations of Debian Bookworm that were made with Calamares
    from the Debian Live CD should somehow have the diversion cleaned up such
    that the contents of /etc/os-release after the upgrade reflect what
    base-files ships. Since a system installed from a Debian Live CD with
    calamares also installs the live-* packages, maybe a new upload of
    live-config or live-tools could contain a postinst maintainer script which
    performs the necessary magic?

Maybe the second part should be done quickly because there are a bunch of
users out there which are currently very confused by this issue:

 - https://www.reddit.com/r/debian/comments/1mmbjdh/old_etcosreleases_file_after_upgrading_to_debian/
 - https://www.reddit.com/r/debian/comments/1mmldrq/upgraded_to_debian_13_but_still_showing_as/
 - https://www.reddit.com/r/debian/comments/1moe5bz/trixie_upgrade_doesnt_upgrade_etcosrelease/

Unfortunately I don't have a reddit account, so I cannot be of further
assistance on that platform.

Thanks!

cheers, josch

--- End Message ---
--- Begin Message ---
Source: live-build
Source-Version: 1:20250505+deb13u1
Done: Luca Boccassi <bluca@debian.org>

We believe that the bug you reported is fixed in the latest version of
live-build, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1111039@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luca Boccassi <bluca@debian.org> (supplier of updated live-build package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 14 Aug 2025 20:27:49 +0100
Source: live-build
Architecture: source
Version: 1:20250505+deb13u1
Distribution: trixie
Urgency: medium
Maintainer: Debian Live <debian-live@lists.debian.org>
Changed-By: Luca Boccassi <bluca@debian.org>
Closes: 1111039
Changes:
 live-build (1:20250505+deb13u1) trixie; urgency=medium
 .
   * Remove os-release diversions once rootfs creation is finished
     (Closes: #1111039)
   * Install live-specific os-release only with --system live
Checksums-Sha1:
 c417697cc75a5778c7cc338cfafe4438da04b8a0 1948 live-build_20250505+deb13u1.dsc
 8d7b786e3e078c2907c91e16addb907aab114393 254340 live-build_20250505+deb13u1.tar.xz
 5efd85533fe61d8c63ad2063f5e2adb2b974d84d 12291 live-build_20250505+deb13u1_source.buildinfo
Checksums-Sha256:
 06a47dd5b8f1d451b3fa71d4ec9efeb85633dc4eae57478d8439621011214e49 1948 live-build_20250505+deb13u1.dsc
 1aad324e433d6cb6d038193252b74fd0ed1c1e1d7e1c6cf410c8fb09c5225b9e 254340 live-build_20250505+deb13u1.tar.xz
 2e47dc1211794a6ac7d424bdd6bc455b32f2bef7d71f5ab4992fc261f3c92af9 12291 live-build_20250505+deb13u1_source.buildinfo
Files:
 e6948b1ecd5035474ffbfaab9ab0bd56 1948 misc optional live-build_20250505+deb13u1.dsc
 5d7c530010fc75d7e0cdd232ecc71399 254340 misc optional live-build_20250505+deb13u1.tar.xz
 732b149f3a22f0c7ee72614e7b048284 12291 misc optional live-build_20250505+deb13u1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEErCSqx93EIPGOymuRKGv37813JB4FAmieOXgRHGJsdWNhQGRl
Ymlhbi5vcmcACgkQKGv37813JB67pBAAt7KmByHHAGpgjdCYK24Wa6StLT9rHXP4
5CH6deI+hlprlE+6Yd5i2TZc6nVHeo6meTqmMRm50+Raf0lklXJke1ruSSUJ9ttF
R+iFsgWu+en1zYQKDSdD0AK0lE2tG+FY3RfNkBuwfrCB2inpoI4ejzLudyvDLMem
T24yCLoMWop3PcrXGSpAZaNk1oaI5Xed4NoCwudy5BJICYJefvHiGeFEqrCW8Bea
u/CqG9T5QP9XU8kFb+jZVkfYpcwtdyGFfAzrigttUnBT8HMoKa26VD5DMjg2PAu1
TSsVWyewAiNz9NJNPpYtRpl9dyjxBfC67s+Jekfd3VKmUxwm+iLboKKZ4KuzWsSg
Vv288PZRsqhuEdXjMLjYlcpgphJckoN+HZ2A2Lif3dltUHfBmj43j0KN8U8BXOR3
9HzRnb25EHM7PNqTNdmTXMrjXXHnCGUfEgf6ZTBpXXo/i6DyHPllvPRnOLgMEp+8
RIyhGhVi01PEn3HacMFX1vyRDK4/SP+PbG6koTeONznV6hrGBYkNeS8n/96n3aJ+
Bej0uGNGAZMORtJo30qZ3hyQxku438eJffa6YOA2/GDQjryWOmlPjI1tPlFeXjfI
TX+zxxpMP6/dtYRUoHsx5cpPjrJZwL7fJ7N/HbYTkL2EkgHRp2uux1QPfR2XWctP
F1AurDRLObE=
=i91R
-----END PGP SIGNATURE-----

Attachment: pgpqqtEhSj9MB.pgp
Description: PGP signature


--- End Message ---

Reply to: