Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-05 Thread Jan Alexander Steffens
On Mon, Oct 5, 2015 at 8:28 AM, Alessio Igor Bogani wrote: > So I'll install polkit. The only downside is that polkit drag > Javascript interpreter in which isn't a typical package for an > embedded system due it's footprint but I suspect that I should live > with it.

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-05 Thread Alessio Igor Bogani
Hi, On 3 October 2015 at 15:34, Lennart Poettering wrote: [...] > Well, we need some kind of policy framework in place there that allows > the "systemd-networkd" user to set the hostname. If you disable > PolicyKit you have none, and hence the permission is denied. So

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-05 Thread Mantas Mikulėnas
On Mon, Oct 5, 2015 at 9:28 AM, Alessio Igor Bogani < alessioigorbog...@gmail.com> wrote: > Hi, > > On 3 October 2015 at 15:34, Lennart Poettering > wrote: > [...] > > Well, we need some kind of policy framework in place there that allows > > the "systemd-networkd" user

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-03 Thread Lennart Poettering
On Fri, 02.10.15 14:00, Alessio Igor Bogani (alessioigorbog...@gmail.com) wrote: > I would prefer avoid PolicyKit. Moreover in the systemd 219's README > PolicyKit is stated as optional (line 141). So I have rebuild systemd > disabling policykit explicitly and it doesn't work: > > Oct 02

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-02 Thread Laércio de Sousa
Some guys set the following config in /etc/polkit-1/rules.d: polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.hostname1.set-hostname" && subject.user == "systemd-network") { return polkit.Result.YES; } }); Alternatively, I use the following config in

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-02 Thread Alessio Igor Bogani
Hi, On 29 September 2015 at 13:53, Alessio Igor Bogani wrote: > Hi David, > > On 28 September 2015 at 16:05, David Timothy Strauss > wrote: >> On Mon, Sep 28, 2015 at 1:19 AM Alessio Igor Bogani >> wrote: > [...]

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-02 Thread Tomasz Torcz
On Fri, Oct 02, 2015 at 02:00:21PM +0200, Alessio Igor Bogani wrote: > Hi, > > On 29 September 2015 at 13:53, Alessio Igor Bogani > wrote: > > Hi David, > > > > On 28 September 2015 at 16:05, David Timothy Strauss > > wrote: > >> On Mon, Sep

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-09-29 Thread Alessio Igor Bogani
Hi David, On 28 September 2015 at 16:05, David Timothy Strauss wrote: > On Mon, Sep 28, 2015 at 1:19 AM Alessio Igor Bogani > wrote: [...] >> The systemd 219 brought with Yocto "Fido" can't set hostname supplied >> by DHCP on my Beaglebone:

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-09-28 Thread David Timothy Strauss
On Mon, Sep 28, 2015 at 1:19 AM Alessio Igor Bogani < alessioigorbog...@gmail.com> wrote: > Hi systemd developers and users, > > The systemd 219 brought with Yocto "Fido" can't set hostname supplied > by DHCP on my Beaglebone: > > eth0: eth0: could not bring up interface:

[systemd-devel] systemd and hostname supplied by DHCP

2015-09-28 Thread Alessio Igor Bogani
Hi systemd developers and users, The systemd 219 brought with Yocto "Fido" can't set hostname supplied by DHCP on my Beaglebone: eth0: eth0: could not bring up interface: Invalid argument eth0: gained carrier eth0: DHCPv4 address 192.168.205.87/24