Re: [systemd-devel] proper way to shutdown/reboot host with systemd

2014-08-26 Thread Thomas Suckow
On 08/26/2014 11:54 AM, Vasiliy Tolstov wrote: 2014-08-26 21:32 GMT+04:00 Lennart Poettering : From which language? From C, I'd recommend issuing the PowerOff() method on logind's manager object via the bus. From the shell, i'd recommend "systemctl poweroff", which does exactly that. Thanks,

Re: [systemd-devel] systemd-resolved cannot survive router reinstall

2014-08-21 Thread Thomas Suckow
So the problem is not in networkd, sorry for the noise. The problem is in OpenWRT that uses dnsmasq and stores dhcp lease information on tmpfs. If I reboot the router it looses all the leases and machines should update the information somehow. This is a problem for machines in a separate networ

Re: [systemd-devel] Suppressing automounting

2014-08-20 Thread Thomas Suckow
On 08/20/2014 06:46 AM, Dale R. Worley wrote: From: Lennart Poettering Note that a concept of "mount at boot if it is there, otherwise don't" cannot work. It worked until a week or two ago. I want it back. I'm sure you're right that in the abstract, it cannot be made to work. But that is

Re: [systemd-devel] Networkd dhcp hostname override

2014-08-14 Thread Thomas Suckow
It's used as a general identifier of the client in any situation, so that the server can pass back specific options. Yes, this can be done by looking at the client MAC address, but that's not sufficient in the following cases: 1) non-Ethernet hardware addresses 2) dual-stack clients using DHCP

Re: [systemd-devel] Networkd dhcp hostname override

2014-08-14 Thread Thomas Suckow
Typically the send-hostname thing is actually used for DNS updates, where you send the hostname to the DHCP server, which then gives you a lease and sends the hostname + IP to the DNS server, so that your machine is accessible via DNS automatically. I've never heard of it being used as a Client

[systemd-devel] networkd Promiscuous mode

2014-07-25 Thread Thomas Suckow
There seems to be no way in systemd-networkd to put a link in Promiscuous mode. This is needed to make macvlan work correctly (Otherwise it receives no traffic with its mac address as the destination). If I am not mistaken this could be a boolean in *.link files. - Thomas _

[systemd-devel] Networkd dhcp hostname override

2014-07-24 Thread Thomas Suckow
Now that networkd can send the systems hostname to the dhcp server, I would find it useful to have an option to override the hostname that gets sent. In my use case, I would like to setup a number of macvlans with different hostnames. Something as simple as [DHCP] SendHostname=true Hostname=f