[systemd-devel] udev rules: how to get return result after run command

2017-07-31 Thread Guoqing Jiang
Hello, Sorry if this is not the right place to raise the question. I can get return result after run with PROGRAM call, then $result holds the returned string, but with PROGRAM, I have to use the absolute path of command. And sometimes, the command may located in different path for different

Re: [systemd-devel] sd-bus example code for SetLinkDNS()

2017-07-31 Thread Lennart Poettering
On Di, 25.07.17 13:29, Tilman Baumann (til...@baumann.name) wrote: > Little follow-up question. What would you say is best practice for a vpn > client? > > - Add commandline option --update-systemd-resolved or so > - Autodetect existence of the interface and just do it? (How?) Just issue the

Re: [systemd-devel] systemd/hostnamed: setting the hostname and using it in the DHCP Discover

2017-07-31 Thread J Decker
On Mon, Jul 31, 2017 at 7:38 AM, Andrey Yurovsky wrote: > On Mon, Jul 31, 2017 at 7:24 AM, Lennart Poettering > wrote: > > On Fr, 28.07.17 12:08, Andrey Yurovsky (yurov...@gmail.com) wrote: > > > >> I have an embedded target where the hostname is

Re: [systemd-devel] Requirements for successful mounting of RootImage?

2017-07-31 Thread Lennart Poettering
On So, 30.07.17 13:58, Topi Miettinen (toiwo...@gmail.com) wrote: > Hey, > > I have this test.service unit: > [Unit] > > [Install] > WantedBy=multi-user.target > > [Service] > Type=oneshot > ExecStart=/bin/ls -lR > RootImage=/fs > MountAPIVFS=no Any reason you turn this off? This is likely to

Re: [systemd-devel] Requirements for successful mounting of RootImage?

2017-07-31 Thread Lennart Poettering
On So, 30.07.17 13:58, Topi Miettinen (toiwo...@gmail.com) wrote: > Hey, > > I have this test.service unit: > [Unit] > > [Install] > WantedBy=multi-user.target > > [Service] > Type=oneshot > ExecStart=/bin/ls -lR > RootImage=/fs > MountAPIVFS=no btw, just to mention that, if you want to

Re: [systemd-devel] systemd/hostnamed: setting the hostname and using it in the DHCP Discover

2017-07-31 Thread Lennart Poettering
On Fr, 28.07.17 12:08, Andrey Yurovsky (yurov...@gmail.com) wrote: > I have an embedded target where the hostname is expected to be a > string derived in part from the MAC address of an Ethernet interface. > I've been looking at how to properly set the system's hostname and > also have

Re: [systemd-devel] systemd/hostnamed: setting the hostname and using it in the DHCP Discover

2017-07-31 Thread Andrey Yurovsky
On Mon, Jul 31, 2017 at 7:24 AM, Lennart Poettering wrote: > On Fr, 28.07.17 12:08, Andrey Yurovsky (yurov...@gmail.com) wrote: > >> I have an embedded target where the hostname is expected to be a >> string derived in part from the MAC address of an Ethernet interface. >>

Re: [systemd-devel] systemd-234 automount fails

2017-07-31 Thread Lennart Poettering
On Do, 27.07.17 12:27, Vlad (vo...@vovan.nl) wrote: > Hello, > > Autogenerated from fstab mount unit fails, the relevant fstab entry: > UUID=xx /mnt/data btrfs > noatime,autodefrag,discard,subvol=data,nofail,noauto,x-systemd.automount > > 0 0 > > >From log > Jul

Re: [systemd-devel] Two questions about logind and seats

2017-07-31 Thread Lennart Poettering
On Sa, 29.07.17 00:34, nerdopolis (bluescreen_aven...@verizon.net) wrote: > Hi > > I hope this is the right place to ask this. I have two questions about logind > and seats. > > First, when I attach a 2nd graphics card to seat1, it seems CanMultisession is > set to 0. Is there a way to change

Re: [systemd-devel] systemd/hostnamed: setting the hostname and using it in the DHCP Discover

2017-07-31 Thread Andrey Yurovsky
On Mon, Jul 31, 2017 at 9:27 AM, J Decker wrote: > There's an option under [dhcp] section > https://www.freedesktop.org/software/systemd/man/systemd.network.html > > SendHostname= > When true (the default), the machine's hostname will be sent to the DHCP > server. > >

Re: [systemd-devel] Two questions about logind and seats

2017-07-31 Thread nerdopolis
On Monday, July 31, 2017 9:41:46 AM EDT Lennart Poettering wrote: > On Sa, 29.07.17 00:34, nerdopolis (bluescreen_aven...@verizon.net) wrote: > > > Hi > > > > I hope this is the right place to ask this. I have two questions about > > logind > > and seats. > > > > First, when I attach a 2nd