Bug#1032937: systemd-resolved: Overwriting /etc/resolv.conf with link to /run/systemd/resolve/stub-resolv.conf breaks install in chroot

Luca Boccassi bluca at debian.org
Tue Mar 14 12:58:25 GMT 2023


On Tue, 14 Mar 2023 14:37:46 +0200 =?utf-8?q?Samuli_Suonp=C3=A4=C3=A4?=
<suonpaa at diurnalis.fi> wrote:
> Now we are in a chroot environment, but name resolution does not
work.
> 
> Would it be possible to defer overwriting /etc/resolv.conf? Does it
have
> to happen at .postinst and not at, say, at the start of the service?

No, because the image might be read-only by that time. If you decide to
install the package, you need to ensure it can work, and if you use an
image build tool, it's up to that tool to ensure it is set up
correctly, as it obviously cannot be done from the package itself.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20230314/530fa785/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list