[ Luca Boccassi ]
* resolved: switch from .links to postinst/rm (LP: #1988300)
dpkg refuses to install the symlink in chroot/container environments
where /etc/resolv.conf is bind mounted:
| Unpacking systemd-resolved (251.4-1) ...
| dpkg: error processing archive /var/cache/apt/archives/systemd-resolved_251.4-1_amd64.deb (--unpack):
| unable to make backup link of './etc/resolv.conf' before installing new version: Invalid cross-device link
So unfortunately manual handling via maintainerscripts is necessary.
Use maintainer scripts to avoid failing the installation, and provide
feedback to the user if the symlink cannot be successfully installed.
Also on removal, either copy /run/systemd/resolve/resolv.conf or
create an empty /etc/resolv.conf.
Amend to use the correct Ubuntu version string (251.4-1ubuntu2).
Author: Luca Boccassi
Files:
- debian/systemd-resolved.links
- debian/systemd-resolved.postinst
- debian/systemd-resolved.postrm https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=faf479a6158aac977c2cdb32fd1eaecc0862a7ef
* resolv.conf: take backup as a fallback
piuparts doesn't like seeing an empty resolv.conf after removing
the package, so take a backup and use it in case resolved/resolv.conf
is not available
Author: Luca Boccassi
Files:
- debian/systemd-resolved.postinst
- debian/systemd-resolved.postrm https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=c2b15f43eb7779953a3dda7f461edbb1bf038701
[ Nick Rosbrook ]
* debian/systemd-resolved.{postinst,postrm}: do not use DPKG_ROOT.
We cherry-picked "resolved: switch from .links to postinst/rm" and
"resolv.conf: take backup as a fallback" from debian/251.4-3 to fix a
systemd-resolved installation issue, but we are not taking the DPKG_ROOT
changes at the moment due to feature freeze.
Files:
- debian/systemd-resolved.postinst
- debian/systemd-resolved.postrm https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=5664be09ce9813cb2dd2bd71c5d325036655c312
This bug was fixed in the package systemd - 251.4-1ubuntu3
---------------
systemd (251.4-1ubuntu3) kinetic; urgency=medium
* Fix version of backported sd_hwdb_ new_from_ path symbol. libsystemd0. symbols patches/ sd-hwdb- add-sd_ hwdb_new_ from_path. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=dee01ca169c d41e514658f8a63 1847c9e852e842
The systemd-hwdb binary calling into this library is linked statically,
but we still want to keep a future proof ABI, just in case.
Files:
- debian/
- debian/
https:/
systemd (251.4-1ubuntu2) kinetic; urgency=medium
[ Lukas Märdian ] /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=2281670aa80 07179170d5cc485 bb94e3bbc3b63c
* Provide upgrade path (Replaces:) for Jammy's systemd-repart (LP: 1897932)
File: debian/control
https:/
[ Luca Boccassi ] apt/archives/ systemd- resolved_ 251.4-1_ amd64.deb (--unpack): resolve/ resolv. conf or systemd- resolved. links systemd- resolved. postinst systemd- resolved. postrm /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=faf479a6158 aac977c2cdb32fd 1eaecc0862a7ef resolv. conf systemd- resolved. postinst systemd- resolved. postrm /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=c2b15f43eb7 779953a3dda7f46 1edbb1bf038701
* resolved: switch from .links to postinst/rm (LP: #1988300)
dpkg refuses to install the symlink in chroot/container environments
where /etc/resolv.conf is bind mounted:
| Unpacking systemd-resolved (251.4-1) ...
| dpkg: error processing archive /var/cache/
| unable to make backup link of './etc/resolv.conf' before installing new version: Invalid cross-device link
So unfortunately manual handling via maintainerscripts is necessary.
Use maintainer scripts to avoid failing the installation, and provide
feedback to the user if the symlink cannot be successfully installed.
Also on removal, either copy /run/systemd/
create an empty /etc/resolv.conf.
Amend to use the correct Ubuntu version string (251.4-1ubuntu2).
Author: Luca Boccassi
Files:
- debian/
- debian/
- debian/
https:/
* resolv.conf: take backup as a fallback
piuparts doesn't like seeing an empty resolv.conf after removing
the package, so take a backup and use it in case resolved/
is not available
Author: Luca Boccassi
Files:
- debian/
- debian/
https:/
[ Nick Rosbrook ] systemd- resolved. {postinst, postrm} : do not use DPKG_ROOT. resolved installation issue, but we are not taking the DPKG_ROOT systemd- resolved. postinst systemd- resolved. postrm /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=5664be09ce9 813cb2dd2bd71c5 d325036655c312
* debian/
We cherry-picked "resolved: switch from .links to postinst/rm" and
"resolv.conf: take backup as a fallback" from debian/251.4-3 to fix a
systemd-
changes at the moment due to feature freeze.
Files:
- debian/
- debian/
https:/
-- Lukas Märdian <email address hidden> Thu, 01 Sep 2022 12:42:10 +0200