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

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



Hi bluca,

On 13/08/25 23:03, Luca Boccassi wrote:
This was meant to be applied only in the read-only portion of the live
image filesystem, as it contains image IDs that makes sense for an
immutable image to identify it, but not for an upgradable rootfs. If it
gets copied to an installed disk then something went wrong somewhere
and yeah it should be fixed.

The Bananas port of Debian to Apple Silicon [1] uses live-build to build its OS images and is also affected by this. To give you an extra pointer, we use the `--system normal` option to lb_config to build our rootfs. That option is described as

```
defines if the resulting system image should be a live system or a normal, non-live system
```

which implies the rootfs is upgradable. Another option which produces an upgradable rootfs is `--debian-installer live`,

```
When live is chosen, [...] instead of installing the debian system from packages from the medium or the network, it installs the live system to the disk
```

Whatever solution is found to this bug, please keep in mind these two options exist. I don't know if calamares uses the latter of if it uses a completely different mechanism.

Cheers!


[1] https://wiki.debian.org/InstallingDebianOn/Apple/M1


Reply to: