[systemd-devel] Race condition in a chain of external drive, cryptsetup, mount, and mount-bound service on unplug.

2023-04-07 Thread Arsenii Skvortsov
Hello! I have a service in a form of a python script to copy OS profile to a LUKS-encrypted external drive on service stop and restore from it back on service start. (If anyone is interested, this btrfs-progs test: https://gist.github.com/ettavolt/b9e94c36a483f6045339c33fd90ce2e8 - might give a

[systemd-devel] systemd-resolved and dhclient nameservers

2023-04-07 Thread Alex Cheamitru
Hi, I'm curious about whether or not dhclient-provided DNS servers will be added to resolv.conf when it is managed by systemd-resolved. The man page mentions *"... **and dynamically at run time, for example from DHCP leases",* but I'm not sure if that only applies to systemd-networkd leases. To

Re: [systemd-devel] systemd-resolved and dhclient nameservers

2023-04-07 Thread Mantas Mikulėnas
Systemd-resolved can't actually see your leases all on its own; the DHCP client needs to provide it that information. Networkd and NetworkManager do it directly through the D-Bus IPC. For standalone dhcpcd, you would likely need to install the `resolvconf` emulation that comes with systemd (usuall