[systemd-devel] [PATCH 1/1] sd-dhcp6-client: delay setting the DUID and don't fail constructor
Thomas Haller
thaller at redhat.com
Wed Mar 4 04:57:38 PST 2015
On Wed, 2015-03-04 at 12:52 +0100, Lennart Poettering wrote:
> On Tue, 03.03.15 21:06, Thomas Haller (thaller at redhat.com) wrote:
>
> > sd_dhcp6_client_new() tried to set the DUID based on the machine id.
> > If the host has no /etc/machine-id, the constructor would fail
> > making it impossible to create an sd_dhcp6_client instance.
>
> We do not even allow bootups without /etc/machine-id.
>
> If the file is missing then things really *should* fail.
Hi
I understand, and agree that it makes sense for systemd.
networkd will still fail, at bit later.
With this change, libsystemd-network might handle systems without
machine-id file -- as long as the user cares and sets an alternative
DUID via sd_dhcp6_client_set_duid().
That is interesting for NetworkManager.
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150304/299520cc/attachment.sig>
More information about the systemd-devel
mailing list