On Wed, 14 Feb 2024, Raphael Hertzog wrote: > i.e. is the the file-loss triggered only by the bad path in the > dpkg-divert call or is it triggered by the upgrade of dpkg between > both dpkg-divert calls? > > I thought it was the latter... and that would explain why OpenQA is not > affected, it likely generates images against the release that it is > testing.
I have confirmed this. The bad path is not problematic in itself, dpkg-divert will move the file away and put it back as expected. I believe it's because dpkg is removing /sbin/start-stop-daemon in favor of /usr/sbin/start-stop-daemon that we are losing the diverted .REAL file. Even though this file loss scenario is rare because you need to have two specific dpkg version in bootstrap-base and pkgsel, it's still worth fixing because the ineffective diversions means that any dpkg upgrade in pkgsel will happily overwrite d-i's version of start-stop-daemon and thus we might start seeing daemons running in the debian-installer environment. Cheers, -- ⢀⣴⠾⠻⢶⣦⠀ Raphaël Hertzog <hert...@debian.org> ⣾⠁⢠⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋ The Debian Handbook: https://debian-handbook.info/get/ ⠈⠳⣄⠀⠀⠀⠀ Debian Long Term Support: https://deb.li/LTS