Re: [systemd-devel] [EXT] Splitting large message written to stdout, explanation?

2023-05-25 Thread Virendra Negi
@Windl but the logs are sent to rsyslog is over unix socket. On Thu, May 25, 2023 at 12:22 PM Windl, Ulrich wrote: > Maybe syslog is just the wrong thing for your purpose: > RFC 5424 states: "The reason syslog transport receivers need only support > receiving up >to and including 480 octets

[systemd-devel] Creating a man page with 'recipes' for common unit dependency combinations

2023-05-25 Thread Kevin P. Fleming
As I use systemd more and more I find myself needing to express complex dependencies between units. While systemd provides many 'building blocks' which can be combined to satisfy the requirements, determining which blocks to use, and the pros/cons of each combination, is non-trivial. Attempting

Re: [systemd-devel] Monotonic time went backwards, rotating log

2023-05-25 Thread Phillip Susi
Lennart Poettering writes: > We want that within each file all records are strictly ordered by all > clocks, so that we can find specific entries via bisection. Why *all* clocks? Even if you want to search on the monotonic time, you first have to specify a boot ID within which that monotonic

[systemd-devel] udev rule, continue to next rule only if preb failed

2023-05-25 Thread daggs
Greetings, I'm trying to implement the following behavior: if a usb is added ot removed, run a script before all other existing rules but continue to existing iff the script failed I've added the following rule to /etc/udev/rules.d/5-usb_vm.rules: ACTION=="add", SUBSYSTEM=="usb", RUN="/usr/local/

Re: [systemd-devel] [EXT] Re: Why does stopping mount units kill user sessions?

2023-05-25 Thread Benjamin Godfrey
Windl Ulrich rebutted: Actually I don't quite get it: If some process is inside $HOME, $HOME shouldn't be unmounted (i-node busy, or so). But when there is no process inside $HOME (and no other fd opened on it), when not allowing to unmount $HOME? Where does opening an extra fd on $HOME help? Be

Re: [systemd-devel] By what mechanism are locale-related environment variables (LC_*) set in services?

2023-05-25 Thread Andrei Borzenkov
On 25.05.2023 17:12, Farblos wrote: Running on systemd 252 (252.6-1) on Debian testing. It seems that systemd services, also transient ones, get the full set of locale environment variables (LANG, LANGUAGE, LC_*) as defined in /etc/default/locale. I only have found environment variable $LANG m

[systemd-devel] By what mechanism are locale-related environment variables (LC_*) set in services?

2023-05-25 Thread Farblos
Running on systemd 252 (252.6-1) on Debian testing. It seems that systemd services, also transient ones, get the full set of locale environment variables (LANG, LANGUAGE, LC_*) as defined in /etc/default/locale. I only have found environment variable $LANG mentioned in systemd.exec(5) as "Set o

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-25 Thread Lennart Poettering
On Do, 25.05.23 10:08, Andrea Pappacoda (and...@pappacoda.it) wrote: > Il giorno mer 24 mag 2023 alle 14:35:05 +02:00:00, Lennart Poettering > ha scritto: > > Note that in systemd git main there's already support for generating > > UKIs dynamically when a kernel RPM/DEB is installed (as long as t

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-25 Thread Lennart Poettering
On Mi, 24.05.23 19:01, Felix Rubio (fe...@kngnt.org) wrote: > Hi Lennart, > > "Sorry, but GPG is a no-go. Not in 2023." > > Yes, I understand that. What I am trying to get is a simple way to verify > that the initramfs has not been tampered with. UKI comes with its own > challenges, using encrypti

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-25 Thread Andrea Pappacoda
Il giorno mer 24 mag 2023 alle 14:35:05 +02:00:00, Lennart Poettering ha scritto: Note that in systemd git main there's already support for generating UKIs dynamically when a kernel RPM/DEB is installed (as long as the "kernel-install" infra is in use). It can be signed with a local key, that ca