[systemd-devel] Cannot nspawn raspbian 10

2020-09-09 Thread chiasa.men
(cf. https://github.com/systemd/systemd/issues/16975) Testscript: wget https://downloads.raspberrypi.org/raspios_lite_armhf_latest -o r.zip unzip r.zip LOOP=$(losetup --show -Pf *raspios-buster-armhf-lite.img) mount ${LOOP}p2 /mnt mount ${LOOP}p1 /mnt/boot systemd-nspawn --bind

Re: [systemd-devel] systemd-devel Digest, Vol 125, Issue 21

2020-09-09 Thread Lennart Poettering
On Mi, 09.09.20 10:51, 海阔天空 (858293...@qq.com) wrote: > Hi All, > > > Could you help with the question below? > Does sd_dbus support non-blocking or multi-thread? sd-bus is threads-aware, but not thread-safe. The idea is to allocate a separate bus connection for each thread, and not share

Re: [systemd-devel] libsystemd/sd_bus: trouble understanding how to parse complex responses

2020-09-09 Thread Lennart Poettering
On Di, 08.09.20 20:51, Sergey 'Jin' Bostandzhyan (j...@mediatomb.cc) wrote: > > > > https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format > > Oh, so you mean that when I use "busctl call" it would detect and fake a > GetManagedObjects() method invocation and internally use

Re: [systemd-devel] Cannot nspawn raspbian 10

2020-09-09 Thread Lennart Poettering
On Mi, 09.09.20 14:20, chiasa.men (chiasa@web.de) wrote: > (cf. https://github.com/systemd/systemd/issues/16975) > > Testscript: > wget https://downloads.raspberrypi.org/raspios_lite_armhf_latest -o r.zip > unzip r.zip > LOOP=$(losetup --show -Pf *raspios-buster-armhf-lite.img) > mount

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-09 Thread Lennart Poettering
On Mi, 09.09.20 09:23, Colin Guthrie (gm...@colin.guthr.ie) wrote: > Alvin Šipraga wrote on 08/09/2020 22:54: > > Hi, > > > > On 9/8/20 4:12 PM, Colin Guthrie wrote: > > > >> 2. Set your /etc/ master image to make /etc/localtime to be a symlink to > >> /run/localtime and then ensure

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-09 Thread Shravan Singh
Can we close this issue? I have a solution that works. I will provide it to mender and hopefully they will maintain it if not then I will be happy to maintain it. On Wed, Sep 9, 2020 at 11:30 AM Lennart Poettering wrote: > On Mi, 09.09.20 09:23, Colin Guthrie (gm...@colin.guthr.ie) wrote: > >

[systemd-devel] Enable sandboxing options globally for all services

2020-09-09 Thread Christopher Wong
Hi, Is there a way to turn on a sandboxing option for all services? We would like to on an embedded system enable as much sandboxing options as default. Only whitelist options for services that need access to them. Best Regards, Christopher Wong

Re: [systemd-devel] Enable sandboxing options globally for all services

2020-09-09 Thread Michael Biebl
Am Mi., 9. Sept. 2020 um 21:40 Uhr schrieb Christopher Wong : > > Hi, > > > Is there a way to turn on a sandboxing option for all services? Recent versions of systemd allow to use global drop-in config snippets. See the changelog of v244 * Unit files now support top level dropin

[systemd-devel] Antw: Re: [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-09 Thread Ulrich Windl
>>> Shravan Singh schrieb am 08.09.2020 um 15:31 in Nachricht : > No one is answering a simple question. Why we have to guard timezone so > much?. > Why can't I change it? What happens if I change it on a read-only rootfs? I > am breaking the whole systemd by doing this? > > In fact most of the

[systemd-devel] Antw: [EXT] Re: Alias use in socket file

2020-09-09 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 08.09.2020 um 16:04 in Nachricht <20200908140433.GC272410@gardel-login>: > On Di, 08.09.20 08:45, Belisko Marek (marek.beli...@gmail.com) wrote: > >> Hi, >> >> I'm using yocto build systemd and I'm using openssh server which >> create sshd.socket + sshd@.service

[systemd-devel] Antw: [EXT] Re: Q: Start a unit n minutes after a successful boot

2020-09-09 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 08.09.2020 um 16:19 in Nachricht <20200908141953.GB272516@gardel-login>: > On Di, 08.09.20 09:21, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> Hi! >> >> Configuring a new system with non‑redundant system disk I'm >> wondering: How could I start

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-09 Thread Colin Guthrie
Alvin Šipraga wrote on 08/09/2020 22:54: > Hi, > > On 9/8/20 4:12 PM, Colin Guthrie wrote: > >> 2. Set your /etc/ master image to make /etc/localtime to be a symlink to >> /run/localtime and then ensure /run/localtime is a symlink to the >> appropriate file in /usr during early boot (e.g. in

Re: [systemd-devel] Why systemd keeps references on passed sockets ?

2020-09-09 Thread Francis Moreau
On Tue, Sep 8, 2020 at 5:41 PM Lennart Poettering wrote: > > On Di, 08.09.20 17:35, Francis Moreau (francis.m...@gmail.com) wrote: > > > On Mon, Sep 7, 2020 at 4:38 PM Lennart Poettering > > wrote: > > > > > > "React on the socket close?" — What do you mean by that? > > > > > > > I mean if my