[systemd-devel] What condition(s) do .device units wait for?

2023-09-15 Thread Philip Couling
I'm trying to understand what a system is timing out waiting for a device in /etc/fstab when a simple "mount -av" will succeed. To reach systemd, initramfs has already mounted the device as the base layer to an overlay mount used as the root file system, so it's definitely ready to use in the

Re: [systemd-devel] How can I prevent systemd.network from auto-deleting my manually-assigned static IPv4 addresses?

2023-09-15 Thread Jeremy Friesner
Ian Pilcher https://mailto:arequip...@gmail.com>> wrote: > Why are you running systemd-networkd at all? That’s a really good question — the decision wasn’t made by me. I think the people in charge of updating the device’s Linux distribution were just thinking along general principles that

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-15 Thread Aleksandar Kostadinov
Will appreciate any pointers about debugging and fixing this! On Tue, Sep 12, 2023 at 2:55 AM Aleksandar Kostadinov wrote: > > On Mon, Sep 11, 2023 at 2:57 PM Lennart Poettering > wrote: > > > > On Mo, 11.09.23 14:48, Aleksandar Kostadinov (akost...@redhat.com) wrote: > > > > > Hi again. I

Re: [systemd-devel] How can I prevent systemd.network from auto-deleting my manually-assigned static IPv4 addresses?

2023-09-14 Thread Ian Pilcher
On 9/13/23 17:32, Jeremy Friesner wrote: This all works fine and has for a long time; the problem is that the new version of the device is running systemd.networkd and networkd has some functionality in it where it detects when an Ethernet device has lost its carrier, and responds by removing

[systemd-devel] mDNS Packet truncation support in systemd

2023-09-14 Thread Vishwanath Chandapur
Hi, We have a couple of observations on packet truncation for systemd mdns packets. 1.As querier systemd supports packet truncation for mdns packets. 2.As responder systemd does not process the packets enabled with truncation Ideally as part of rfc 6762 7.2 recommends to support packet

Re: [systemd-devel] DynamicUser=yes leads to "Too many levels of symbolic links" for /etc/.pwd.lock

2023-09-14 Thread Lennart Poettering
On Do, 14.09.23 03:50, Muggeridge, Matt (matt.muggerid...@hpe.com) wrote: > $ ls -l /etc/.pwd.lock > > lrwxrwxrwx 1 root root 19 Apr 5 2011 /etc/.pwd.lock -> sysconfig/.pwd.lock > > $ ls -l /etc/sysconfig/.pwd.lock > > -rw--- 1 root root 0 Aug 16 07:25 /etc/sysconfig/.pwd.lock > > For the

[systemd-devel] DynamicUser=yes leads to "Too many levels of symbolic links" for /etc/.pwd.lock

2023-09-13 Thread Muggeridge, Matt
Hi, I'm using systemd-v254. My rdisc service fails to start when "DynamicUser=yes", and the error message comes from systemd.execute.c. It's complaining about the /etc/.pwd.lock file (see journal below). I

Re: [systemd-devel] How can I prevent systemd.network from auto-deleting my manually-assigned static IPv4 addresses?

2023-09-13 Thread Jeremy Friesner
Kevin P. Fleming > wrote: > I believe you want KeepConfiguration="static". Thanks for the suggestion; I tried that, but it didn’t change the behavior AFAICT. From the documentation, the

Re: [systemd-devel] How can I prevent systemd.network from auto-deleting my manually-assigned static IPv4 addresses?

2023-09-13 Thread Kevin P. Fleming
I believe you want KeepConfiguration="static". On Wed, Sep 13, 2023, at 18:32, Jeremy Friesner wrote: > Hi all, > > I apologize for this basic question, but I haven’t been able to figure it out > on my own. > > I’m working on an embedded device, which includes a little GUI that (among > other

[systemd-devel] How can I prevent systemd.network from auto-deleting my manually-assigned static IPv4 addresses?

2023-09-13 Thread Jeremy Friesner
Hi all, I apologize for this basic question, but I haven’t been able to figure it out on my own. I’m working on an embedded device, which includes a little GUI that (among other things) allows the user to specify a static IPv4 address (and netmask and gateway) to be associated with a given

Re: [systemd-devel] [PATCH 0/1] x86/kexec: UKI support

2023-09-12 Thread Jarkko Sakkinen
On Tue Sep 12, 2023 at 2:20 AM EEST, Neal Gompa wrote: > On Mon, Sep 11, 2023 at 7:15 PM Jarkko Sakkinen wrote: > > On Sat Sep 9, 2023 at 7:18 PM EEST, Jan Hendrik Farr wrote: > > > Hello, > > > > > > this patch implements UKI support for kexec_file_load. It will require > > > support > > > in

[systemd-devel] Periodically switch volatile to persistent journald and vice versa

2023-09-11 Thread Renjaya Raga Zenta
Hi, We have custom embedded device using SD Card as the main storage. I think there are some concerns regarding how journald write the logs, that may cause massive write amplification and that's bad for a standard SD Card. Journald has Storage= option, I could use Storage=volatile and

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-11 Thread Aleksandar Kostadinov
On Mon, Sep 11, 2023 at 2:57 PM Lennart Poettering wrote: > > On Mo, 11.09.23 14:48, Aleksandar Kostadinov (akost...@redhat.com) wrote: > > > Hi again. I tried to boot from UKI to no avail. > > > > First created a "db" certificate > > > openssl req -newkey rsa:2048 -nodes -keyout db_arch.key -new

Re: [systemd-devel] [PATCH 0/1] x86/kexec: UKI support

2023-09-11 Thread Neal Gompa
On Mon, Sep 11, 2023 at 7:15 PM Jarkko Sakkinen wrote: > > On Sat Sep 9, 2023 at 7:18 PM EEST, Jan Hendrik Farr wrote: > > Hello, > > > > this patch implements UKI support for kexec_file_load. It will require > > support > > in the kexec-tools userspace utility. For testing purposes the

Re: [systemd-devel] [PATCH 0/1] x86/kexec: UKI support

2023-09-11 Thread Jarkko Sakkinen
On Sat Sep 9, 2023 at 7:18 PM EEST, Jan Hendrik Farr wrote: > Hello, > > this patch implements UKI support for kexec_file_load. It will require support > in the kexec-tools userspace utility. For testing purposes the following can > be used: > https://github.com/Cydox/kexec-test/ > > There has

Re: [systemd-devel] systemd-repart /etc automount via discoverable partition specification

2023-09-11 Thread Nils Kattenbeck
On Mon, Sep 11, 2023 at 11:49 AM Lennart Poettering wrote: > > On Mo, 11.09.23 11:39, Nils Kattenbeck (nilskem...@gmail.com) wrote: > > > On Mon, Sep 11, 2023, 10:54 Lennart Poettering > > wrote: > > > > > The discoverable partition scheme has no concept of /etc/ discovery. It > > > focusses on

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-11 Thread Lennart Poettering
On Mo, 11.09.23 14:48, Aleksandar Kostadinov (akost...@redhat.com) wrote: > Hi again. I tried to boot from UKI to no avail. > > First created a "db" certificate > > openssl req -newkey rsa:2048 -nodes -keyout db_arch.key -new -x509 -sha256 > > -days 3650 -subj "/CN=My DB cert/" -out db.pem > >

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-11 Thread Aleksandar Kostadinov
Hi again. I tried to boot from UKI to no avail. First created a "db" certificate > openssl req -newkey rsa:2048 -nodes -keyout db_arch.key -new -x509 -sha256 > -days 3650 -subj "/CN=My DB cert/" -out db.pem > openssl x509 -outform DER -in db.pem -out db.crt Then uploaded it to secure boot trust

Re: [systemd-devel] systemd-repart /etc automount via discoverable partition specification

2023-09-11 Thread Lennart Poettering
On Mo, 11.09.23 11:39, Nils Kattenbeck (nilskem...@gmail.com) wrote: > On Mon, Sep 11, 2023, 10:54 Lennart Poettering > wrote: > > > On So, 10.09.23 00:33, Nils Kattenbeck (nilskem...@gmail.com) wrote: > > > > > Hello, I am currently trying to build a linux image with discoverable > > >

Re: [systemd-devel] systemd-repart /etc automount via discoverable partition specification

2023-09-11 Thread Nils Kattenbeck
On Mon, Sep 11, 2023, 10:54 Lennart Poettering wrote: > On So, 10.09.23 00:33, Nils Kattenbeck (nilskem...@gmail.com) wrote: > > > Hello, I am currently trying to build a linux image with discoverable > > partitions in an A/B+etc+var scheme. > > The discoverable partition scheme has no concept

[systemd-devel] Stopping a PAMName=login graphical session cleanly

2023-09-11 Thread Michał Sawicz
Hi all, Roughly following the setup recommended here: https://wayland.pages.freedesktop.org/weston/toc/running-weston.html#running-weston-from-a-systemd-service I'm building a solution for a default, always running user session. It works well, with one exception - how do I stop it cleanly?

Re: [systemd-devel] systemd-repart /etc automount via discoverable partition specification

2023-09-11 Thread Lennart Poettering
On So, 10.09.23 00:33, Nils Kattenbeck (nilskem...@gmail.com) wrote: > Hello, I am currently trying to build a linux image with discoverable > partitions in an A/B+etc+var scheme. The discoverable partition scheme has no concept of /etc/ discovery. It focusses on three basic setups: 1. writable

Re: [systemd-devel] Documentation question about sd-device

2023-09-11 Thread Lennart Poettering
On So, 10.09.23 11:45, CARLOS VILLANUEVA Y SIMON (carvi...@gmail.com) wrote: > Hello all, > > Recently, while updating a code that was using libudev to a more modern > API, sd-device, I could not find some of the functions that are defined at > sd-device.h ( >

[systemd-devel] Documentation question about sd-device

2023-09-10 Thread CARLOS VILLANUEVA Y SIMON
Hello all, Recently, while updating a code that was using libudev to a more modern API, sd-device, I could not find some of the functions that are defined at sd-device.h ( https://github.com/systemd/systemd/blob/main/src/systemd/sd-device.h) at the man pages (

[systemd-devel] systemd-repart /etc automount via discoverable partition specification

2023-09-09 Thread Nils Kattenbeck
Hello, I am currently trying to build a linux image with discoverable partitions in an A/B+etc+var scheme. I know that /usr and /var have a corresponding partition UUID for automatically mounting them as per DPS. However, I am not sure how to mount the /etc partition? Do I have to specify it as

Re: [systemd-devel] [PATCH 0/1] x86/kexec: UKI support

2023-09-09 Thread Luca Boccassi
On Sat, 9 Sept 2023 at 18:58, Jan Hendrik Farr wrote: > > > - the cmdline section is actually optional, just like it's optional to > > pass it on a traditional kexec load, so it should be used if present, > > but skipped if not > > Should be an easy fix. > > This should be updated in the UKI

Re: [systemd-devel] [PATCH 0/1] x86/kexec: UKI support

2023-09-09 Thread Luca Boccassi
On Sat, 9 Sept 2023 at 17:19, Jan Hendrik Farr wrote: > > Hello, > > this patch implements UKI support for kexec_file_load. It will require support > in the kexec-tools userspace utility. For testing purposes the following can > be used: > https://github.com/Cydox/kexec-test/ > > There has been

[systemd-devel] issue of failing to start Network Name Resolution

2023-09-08 Thread Cranegsh
Hello, I am setting up the wifi for a customized Linux image. It uses systemd to manage the network. Right now, I am able to config the ip address and ping 8.8.8.8, but get "bad address" when ping google.ca. It is because the systemd-resolved service failed to start. systemctl status shows

[systemd-devel] journalctl: switches & more with less

2023-09-08 Thread Kyle Evans
Would it be possible to use switches with the basic KEY=VALUE searches. For instance, journalctl -g "state changed" _SYSTEMD_UNIT=ModemManager.service + UNIT=ModemManager.service _PID=1 + OBJECT_SYSTEMD_UNIT=ModemManager.service _UID=0 + COREDUMP_UNIT=ModemManager.service removing the -g

[systemd-devel] enabling cgroups v2

2023-09-08 Thread jai
*ISSUE 1:* In ubuntu20, centos8 and almalinux8: *root@host:~# grep cgroup /proc/filesystemsnodev cgroupnodev cgroup2* In centos7: *root@centos:~# grep cgroup /proc/filesystemsnodev cgroup* In my centos 7, command '*grep cgroup /proc/filesystems'* does not output "nodev cgroup2". Does

Re: [systemd-devel] Wifi resumes with wrong ssid after opening laptop lid

2023-09-08 Thread Morten Bo Johansen
On 2023-09-07 Morten Bo Johansen wrote: > On 2023-09-07 Andrei Borzenkov wrote: > >> You could at least tell what you are using to manage you (wireless) network. > > Sorry. > > iwctl station wlan0 connect Wasn't really systemd, sorry, but now that I have started it, I should also wrap it up: I

Re: [systemd-devel] Wifi resumes with wrong ssid after opening laptop lid

2023-09-07 Thread Morten Bo Johansen
On 2023-09-07 Andrei Borzenkov wrote: > You could at least tell what you are using to manage you (wireless) network. Sorry. iwctl station wlan0 connect Thanks, Morten

Re: [systemd-devel] Wifi resumes with wrong ssid after opening laptop lid

2023-09-07 Thread Andrei Borzenkov
On 07.09.2023 21:07, Morten Bo Johansen wrote: Hi First, apologies if this isn't really systemd related ... I have a wifi router and an extender/repeater. I connect to the extender's ssid to get the best signal, but when I close the lid on my laptop and then open it again, wifi resumes instead

[systemd-devel] Wifi resumes with wrong ssid after opening laptop lid

2023-09-07 Thread Morten Bo Johansen
Hi First, apologies if this isn't really systemd related ... I have a wifi router and an extender/repeater. I connect to the extender's ssid to get the best signal, but when I close the lid on my laptop and then open it again, wifi resumes instead with a connection to my router's ssid, thereby

Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-09-07 Thread Mirza Krak
On Fri, 1 Sept 2023 at 08:21, Mirza Krak wrote: > > On Thu, 31 Aug 2023 at 12:12, Lennart Poettering > wrote: > > > > On Mi, 30.08.23 15:22, Mirza Krak (mirza.k...@gmail.com) wrote: > > > > > Hi, > > > > > > Environment: > > > * systemd: 250.5 > > > > This release is from 2021, i.e. relatively

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-05 Thread Lennart Poettering
On Sa, 02.09.23 22:22, Aleksandar Kostadinov (akost...@redhat.com) wrote: > Looking at the PR [1] it looks like I need to do a lot of things at > each update manually. Is the thing in the comment the only thing I > need to do or are there other things as well? There's nowadays "ukify" that does

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-05 Thread Lennart Poettering
On Sa, 02.09.23 22:18, Aleksandar Kostadinov (akost...@redhat.com) wrote: > Hello, > > Trying to configure Signed PCR binding on Fedora 38 by following > article [1] and adapting commands for signing. > > What I did was basically this: > > openssl genrsa -out /etc/systemd/tpm2-pcr-private-key.pem

Re: [systemd-devel] Online backup API for systemd-journal?

2023-09-05 Thread Lennart Poettering
On Mo, 04.09.23 16:35, Etienne Doms (etienne.d...@gmail.com) wrote: > Hi, > > I have some embedded systems in the wild, not connected to anything, > on which you can push a button "something went wrong, create a dump". > Then later I can fetch the said dump and inspect it. > > I'd like to include

Re: [systemd-devel] [multiseat] Attach virtual input to seat1

2023-09-05 Thread Lennart Poettering
On So, 03.09.23 00:46, LuKaRo (li...@lrose.de) wrote: > > $ sudo loginctl attach seat1 /sys/devices/virtual/input/input43 > Could not attach device: No such device > $ sudo loginctl attach seat1 /sys/devices/virtual/input/input44 > Could not attach device: No such device > $ sudo loginctl attach

Re: [systemd-devel] Online backup API for systemd-journal?

2023-09-04 Thread Etienne Doms
Oh, I knew I was missing something with the "-o export", I wasn't aware of systemd-journal-remote. Thanks! Le lun. 4 sept. 2023 à 18:54, Mantas Mikulėnas a écrit : > > On Mon, Sep 4, 2023 at 5:35 PM Etienne Doms wrote: >> >> Hi, >> >> I have some embedded systems in the wild, not connected to

Re: [systemd-devel] Online backup API for systemd-journal?

2023-09-04 Thread Mantas Mikulėnas
On Mon, Sep 4, 2023 at 5:35 PM Etienne Doms wrote: > Hi, > > I have some embedded systems in the wild, not connected to anything, > on which you can push a button "something went wrong, create a dump". > Then later I can fetch the said dump and inspect it. > > I'd like to include the whole

[systemd-devel] Online backup API for systemd-journal?

2023-09-04 Thread Etienne Doms
Hi, I have some embedded systems in the wild, not connected to anything, on which you can push a button "something went wrong, create a dump". Then later I can fetch the said dump and inspect it. I'd like to include the whole journal, for the current boot, in a binary format so that I can later

Re: [systemd-devel] Question regarding configuration of SystemMaxUse and SystemKeepFree

2023-09-04 Thread Barry
> On 1 Sep 2023, at 22:36, PureLinux Betriebsführung wrote: > > So my question is - is there any option to set a relative value/a percentage > for that values? Per default, it seems to be possible. So why not a user > defined percentage? How are you managing journal config? If you are

[systemd-devel] [multiseat] Attach virtual input to seat1

2023-09-02 Thread LuKaRo
Hi everyone, been following this list for a while now, and I'm glad to see that I'm not the only one using multiseat nowadays. That makes me wonder if this could be the right place to get help with an issue I'm trying to solve for months now. It burns down to attaching a virtual input to a

Re: [systemd-devel] Fedora 38 and signed PCR binding

2023-09-02 Thread Aleksandar Kostadinov
Looking at the PR [1] it looks like I need to do a lot of things at each update manually. Is the thing in the comment the only thing I need to do or are there other things as well? Also forgot to post link to article in my last email, here it goes [2] [1]

[systemd-devel] Fedora 38 and signed PCR binding

2023-09-02 Thread Aleksandar Kostadinov
Hello, Trying to configure Signed PCR binding on Fedora 38 by following article [1] and adapting commands for signing. What I did was basically this: > openssl genrsa -out /etc/systemd/tpm2-pcr-private-key.pem 2048 > openssl rsa -in /etc/systemd/tpm2-pcr-private-key.pem -pubout -out >

Re: [systemd-devel] Question regarding configuration of SystemMaxUse and SystemKeepFree

2023-09-02 Thread Andrei Borzenkov
On 02.09.2023 12:22, PureLinux Betriebsführung wrote: ... The documentation states, that there are relative values used per default, but they are capped (as you mentioned) at a specific value. So for me, it looks like journald is also supporting relative values. So i am wondering about the

Re: [systemd-devel] Question regarding configuration of SystemMaxUse and SystemKeepFree

2023-09-02 Thread PureLinux Betriebsführung
Hi, thanks for your fast response, Andrei! It seems like i was a bit unclear with my explanation, so we misunderstood. Sorry for that. I meant the actual size of the filesystem, which differs from e.g. 100M on a small SoC up to ~8G on a bigger server system. Not a specific service, which is

Re: [systemd-devel] Question regarding configuration of SystemMaxUse and SystemKeepFree

2023-09-01 Thread Andrei Borzenkov
On 02.09.2023 00:29, PureLinux Betriebsführung wrote: Hi, i am running a bunch of partly very different systems with Debian Bookworm. On this machines, i am using systemd 252 (252.12-1~deb12u1). If i am configuring journald, i am facing the problem, that /var/log is having a very different size

[systemd-devel] Reporting Duplicate Log Lines Issue in journald

2023-09-01 Thread Lebakula, Swaroop
Hi community, I am experiencing an issue while using journald, and I would like to inquire whether this is a known issue within the community. The problem is I see duplicate log lines appearing in journald sometimes. It seems that certain log entries are being duplicated, which can make log

[systemd-devel] Question regarding configuration of SystemMaxUse and SystemKeepFree

2023-09-01 Thread PureLinux Betriebsführung
Hi, i am running a bunch of partly very different systems with Debian Bookworm. On this machines, i am using systemd 252 (252.12-1~deb12u1). If i am configuring journald, i am facing the problem, that /var/log is having a very different size on all my machines. From 100M to 8G or something.

[systemd-devel] (no subject)

2023-09-01 Thread Narayana yeruva
Okay

Re: [systemd-devel] networkd: IPv6: equivalent of 'default via fe80::1` with policy routing?

2023-09-01 Thread TJ
On 01/09/2023 14:15, Mantas Mikulėnas wrote: No; `default` has nothing to do with the gateway field. It's an alias for the route *destination network* field, specifically ::/0 for IPv6 or 0.0.0.0/0 for IPv6. What you have is a completely standard IPv6 default route, regardless of which table

Re: [systemd-devel] networkd: IPv6: equivalent of 'default via fe80::1` with policy routing?

2023-09-01 Thread Mantas Mikulėnas
On Fri, Sep 1, 2023 at 2:55 PM TJ wrote: > I may just be over-thinking this but I have a scenario that I can > configure manually but have not been able to figure out how to amend the > networkd configuration to match! > > # echo "2 starlink" >> /etc/iproute2/rt-tables > # ip -6 rule add from

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Pekka Paalanen
On Fri, 1 Sep 2023 13:37:46 +0200 Lennart Poettering wrote: > On Fr, 01.09.23 13:13, Christian Pernegger (perneg...@gmail.com) wrote: > > > I don't know about this. Yes, seat1 could hog the GPU that seat0's > > outputs are attached to, or vice versa, but seat1 could just as well > > hog all the

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Pekka Paalanen
On Fri, 1 Sep 2023 13:13:12 +0200 Christian Pernegger wrote: > Alright. I only played around with it in the hopes that it would help > me get some VTs (and VT switching) on seat1. So far, no luck on that > front. The funny thing there is that the kernel, where the VT is implemented, has no idea

[systemd-devel] networkd: IPv6: equivalent of 'default via fe80::1` with policy routing?

2023-09-01 Thread TJ
I may just be over-thinking this but I have a scenario that I can configure manually but have not been able to figure out how to amend the networkd configuration to match! # echo "2 starlink" >> /etc/iproute2/rt-tables # ip -6 rule add from 2001:0DB8:1:1::/64 table starlink priority 100 # ip

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Lennart Poettering
On Fr, 01.09.23 13:13, Christian Pernegger (perneg...@gmail.com) wrote: > Of course, if you want to take the position that it's a bit weird for > GNOME to use /dev/rfkill to detect the presence of BT devices, I can't > argue against that. :) Doesn't NM/bluez manage these things from privileged

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Christian Pernegger
Am Fr., 1. Sept. 2023 um 11:48 Uhr schrieb Lennart Poettering : > > It makes no sense for /dev/rfkill to belong to a specific seat, > > though. > > Typically any RF kill buttons are attached to the main seat of a > laptop only, hence this assignment. If there's some form of physical RF kill

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Lennart Poettering
On Fr, 01.09.23 02:02, Christian Pernegger (perneg...@gmail.com) wrote: > Am Do., 31. Aug. 2023 um 21:55 Uhr schrieb Andrei Borzenkov > : > > > > On 31.08.2023 19:22, Christian Pernegger wrote: > > There is no ID_SEAT, so this device [/dev/rfkill] ]belongs to seat0 by > > default. > > It makes

Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-09-01 Thread Mirza Krak
On Thu, 31 Aug 2023 at 12:12, Lennart Poettering wrote: > > On Mi, 30.08.23 15:22, Mirza Krak (mirza.k...@gmail.com) wrote: > > > Hi, > > > > Environment: > > * systemd: 250.5 > > This release is from 2021, i.e. relatively old. The issue you are > descriping is almost certainly aleady addressed

[systemd-devel] How to autoconfigure IPv4 LinkLocalAddressing

2023-08-31 Thread Muggeridge, Matt
Hi, I’m using systemd_254. I my ".network" configuration file (see below), I'm expecting that the “mul0” interface will always be assigned an IPv4 link local address. The documentation for LinkLocalAddressing describes: > An IPv4 link-local address is configured when yes or ipv4 and when

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-08-31 Thread Christian Pernegger
Am Do., 31. Aug. 2023 um 21:55 Uhr schrieb Andrei Borzenkov : > > On 31.08.2023 19:22, Christian Pernegger wrote: > There is no ID_SEAT, so this device [/dev/rfkill] ]belongs to seat0 by > default. It makes no sense for /dev/rfkill to belong to a specific seat, though. GNOME at least assumes the

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-08-31 Thread Andrei Borzenkov
On 31.08.2023 19:22, Christian Pernegger wrote: Hello, still trying to get the kinks out of my multiseat setup ... AFAICT the proper way to give local users access to devices nowadays is via udev and the "uaccess" tag: devices with this tag set should automagically get an ACL entry that gives

[systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-08-31 Thread Christian Pernegger
Hello, still trying to get the kinks out of my multiseat setup ... AFAICT the proper way to give local users access to devices nowadays is via udev and the "uaccess" tag: devices with this tag set should automagically get an ACL entry that gives access to users with active sessions. This works

Re: [systemd-devel] Custom Localed Configuration Location

2023-08-31 Thread Lennart Poettering
On Di, 29.08.23 17:18, TJ Shipp (onezoo...@msn.com) wrote: > I am trying to create a system where we can change locale on a > running system (where we would have daemons subscribe to dbus and > get the properties changed messages) but need to be able to change > the location of the locale file

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-31 Thread Lennart Poettering
On Di, 29.08.23 17:17, TJ Shipp (onezoo...@msn.com) wrote: > I am trying to add in support for a separate variable to change our unit > system, and having both LANG and UNITS to identify the "locale" of the system. > We are also not only looking for English versus Metric, but are looking for >

Re: [systemd-devel] Flushing DNS caches items on clock change.

2023-08-31 Thread Lennart Poettering
On Mi, 30.08.23 18:06, Vishwanath Chandapur (vishwa...@gmail.com) wrote: > Hi, > > We are using systemd-resolved. We observed that on clock change, > systemd-resolved is flushing all caches. > > By looking into the code we found that this is implemented primarily for > DNSSEC. > > Is there any

Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-08-31 Thread Lennart Poettering
On Mi, 30.08.23 15:22, Mirza Krak (mirza.k...@gmail.com) wrote: > Hi, > > Environment: > * systemd: 250.5 This release is from 2021, i.e. relatively old. The issue you are descriping is almost certainly aleady addressed in newer versions. Consider using a new version. Or contact your OS vendor,

Re: [systemd-devel] Is it possible to change the cgroup uid/gid for a systemd slice?

2023-08-31 Thread Lennart Poettering
On Mi, 30.08.23 23:08, Julio Lajara (julio.laj...@protonmail.com) wrote: > Hi all, I have created a systemd slice to constrain CPU/mem > resources for a service unit. The service unit runs as root (its a > bash script) and it runs a subprocess using systemd-run that it also > runs under the same

Re: [systemd-devel] Is it possible to change the cgroup uid/gid for a systemd slice?

2023-08-31 Thread Donald Buczek
On 8/31/23 1:08 AM, Julio Lajara wrote: > Hi all, I have created a systemd slice to constrain CPU/mem resources for a > service unit. The service unit runs as root (its a bash script) and it runs a > subprocess using systemd-run that it also runs under the same slice but a > different

Re: [systemd-devel] Service not run, although enabled

2023-08-31 Thread Matthijs van Duin
> > # systemctl status bestcrypt-fs > ● bestcrypt-fs.service - Mount Bestcrypt containers > Loaded: loaded (/etc/systemd/system/bestcrypt-fs.service; enabled; > vendor preset: disabled) > Active: active (exited) (thawing) since Mon 2023-08-07 11:17:18 EEST; > 20min ago > Process:

[systemd-devel] Is it possible to change the cgroup uid/gid for a systemd slice?

2023-08-30 Thread Julio Lajara
Hi all, I have created a systemd slice to constrain CPU/mem resources for a service unit. The service unit runs as root (its a bash script) and it runs a subprocess using systemd-run that it also runs under the same slice but a different unprivileged user. The subprocess needs to read the

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-30 Thread Andy Pieters
On Wed, 30 Aug 2023 at 17:55, Dave Howorth wrote: > On Tue, 29 Aug 2023 23:05:28 +0200 > Nils Kattenbeck wrote: > > No, you can use systemd-cat to then invoke your script which applies > > to every output of it. > > The solution to problems with gmail is simple. Stop using gmail and > find

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-30 Thread Dave Howorth
On Tue, 29 Aug 2023 23:05:28 +0200 Nils Kattenbeck wrote: > No, you can use systemd-cat to then invoke your script which applies > to every output of it. > > Also, you can just use reply-all in gmail (or even set it as the > default in the settings) to have the correct behaviour of sending >

[systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-08-30 Thread Mirza Krak
Hi, Environment: * systemd: 250.5 * Linux kernel 5.15.113 I am trying to do something really simple (I thought), and I have the following .network file: [Match] Name=lo [Address] Address=169.254.66.6/32 But it fails with the following error: Aug 30 13:17:05 localhost

[systemd-devel] Flushing DNS caches items on clock change.

2023-08-30 Thread Vishwanath Chandapur
Hi, We are using systemd-resolved. We observed that on clock change, systemd-resolved is flushing all caches. By looking into the code we found that this is implemented primarily for DNSSEC. Is there any specific reason for flushing the other cache items like mDNS, LLMNR? Regards Vishwa

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-30 Thread Dave Howorth
On Wed, 30 Aug 2023 00:53:55 + TJ Shipp wrote: > Thank you, I think LC_NUMERIC will work for the number formatting, my > company is also looking for something along the lines of this, and > hoping to use locale/systemd to handle it: > >

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-29 Thread TJ Shipp
Thank you, I think LC_NUMERIC will work for the number formatting, my company is also looking for something along the lines of this, and hoping to use locale/systemd to handle it: https://lists.freedesktop.org/archives/xdg/2023-August/014659.html From:

Re: [systemd-devel] Bluetooth in a multiseat (via loginctl) setup

2023-08-29 Thread Christian Pernegger
Hello again, shelving that multiple BT adapters idea for a moment, since that doesn't seem to be a supported configuration, more's the pity, the issue with GNOME seems to be that /dev/rfkill doesn't get the right permissions. It's tagged "uaccess" alright, the intention seems to be that (active)

Re: [systemd-devel] oomd wake-up frequency

2023-08-29 Thread Christian Hergert
On 8/25/23 7:54 AM, Michal Koutný wrote: I think the loop's event source could be disabled when no cgroups require swap monitoring [1] (and enabled lazily when such are configured). FYI I implemented your design this afternoon in case you have some time to review.

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 23:05 schreef Nils Kattenbeck : > No, you can use systemd-cat to then invoke your script which applies > to every output of it. > OK, I will dive into it. > Also, you can just use reply-all in gmail (or even set it as the > default in the settings) to have the correct

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Nils Kattenbeck
No, you can use systemd-cat to then invoke your script which applies to every output of it. Also, you can just use reply-all in gmail (or even set it as the default in the settings) to have the correct behaviour of sending mails also the the mailing list. On Tue, Aug 29, 2023 at 10:25 PM Cecil

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-29 Thread Mantas Mikulėnas
It sounds like you're reinventing LC_NUMERIC. The locale system has a lot more than just LANG; it already allows the number format to be overridden separately from the "language". Take a look at `locale -k LC_NUMERIC` and <

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Aargh, forgot again that gmail works differently when replying. :'-{ Op di 29 aug 2023 om 21:07 schreef Cecil Westerhof : > Op di 29 aug 2023 om 19:47 schreef Nils Kattenbeck : > >> Hi, At least for simple cases you can use systemd-cat which allows >> setting different priorities for stdout and

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Nils Kattenbeck
Hi, At least for simple cases you can use systemd-cat which allows setting different priorities for stdout and stderr. It even explicitly states that doing so will lose the ordering guarantees which are only possible when attaching stdout and stderr to the same fd (as Lennart said). Greetings

[systemd-devel] Custom Localed Configuration Location

2023-08-29 Thread TJ Shipp
I am trying to create a system where we can change locale on a running system (where we would have daemons subscribe to dbus and get the properties changed messages) but need to be able to change the location of the locale file (by default in /etc/locale.conf) as /etc is read-only on our

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 11:58 schreef Lennart Poettering < lenn...@poettering.net>: > On Di, 29.08.23 11:56, Cecil Westerhof (cldwester...@gmail.com) wrote: > > > I agree with that usecase, and we have discussed this many times > > > before, but we couldn#t come up with a nice way to make everything

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
On Di, 29.08.23 11:56, Cecil Westerhof (cldwester...@gmail.com) wrote: > > I agree with that usecase, and we have discussed this many times > > before, but we couldn#t come up with a nice way to make everything > > work: proper ordering and distintion of stdout/stderr. > > I agree that the default

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 11:36 schreef Lennart Poettering < lenn...@poettering.net>: > On Di, 29.08.23 11:20, Cecil Westerhof (cldwester...@gmail.com) wrote: > > > Also: everything has a timestamp, so there is in my opinion when you > choose > > to take them apart no big problem. > > For stream

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
On Di, 29.08.23 11:20, Cecil Westerhof (cldwester...@gmail.com) wrote: > Also: everything has a timestamp, so there is in my opinion when you choose > to take them apart no big problem. For stream connections like those used for stdout/stderr, lines do not come with timestamps. We add them on

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 10:13 schreef Lennart Poettering < lenn...@poettering.net>: > On Sa, 26.08.23 06:14, Cecil Westerhof (cldwester...@gmail.com) wrote: > > Please keep mails like this on the mailing list. > Sorry, I am used to that when I am responding to a list, my reply goes to the list.

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
On Sa, 26.08.23 06:14, Cecil Westerhof (cldwester...@gmail.com) wrote: Please keep mails like this on the mailing list. > > We should not "assume the worst", hence given that the stderr stream > > is typically used for all kinds of informational messages we should > > not always assume its an

[systemd-devel] Bluetooth in a multiseat (via loginctl) setup

2023-08-28 Thread Christian Pernegger
Hello all! Sorry to bother a -devel list with my user troubles, but I don't know where (else) to start. So, Ubuntu 22.04, multiseat setup automagically via loginctl. The only thing I had to do extra was disable Wayland in gdm. Works beautifully. Except for Bluetooth. I've one USB port (with an

Re: [systemd-devel] Systemctl thinks a service file exists that does not

2023-08-28 Thread Cecil Westerhof
Op ma 28 aug 2023 om 14:31 schreef Cecil Westerhof : > Forgot again to change the To. :'-{ > > -- Forwarded message - > Van: Cecil Westerhof > Date: ma 28 aug 2023 om 13:56 > Subject: Re: [systemd-devel] Systemctl thinks a service file exists that > does not > To: Andrei

[systemd-devel] Fwd: Systemctl thinks a service file exists that does not

2023-08-28 Thread Cecil Westerhof
Forgot again to change the To. :'-{ -- Forwarded message - Van: Cecil Westerhof Date: ma 28 aug 2023 om 13:56 Subject: Re: [systemd-devel] Systemctl thinks a service file exists that does not To: Andrei Borzenkov Op ma 28 aug 2023 om 13:30 schreef Andrei Borzenkov : > On Mon,

Re: [systemd-devel] Normal user can ask status of services

2023-08-28 Thread Michael Biebl
Am Sa., 26. Aug. 2023 um 15:25 Uhr schrieb Andrei Borzenkov : > > On 26.08.2023 15:46, Michael Biebl wrote: > > > > Reading system logs is a privileged operation. > > > > It is not about reading logs but about being able to "systemctl status > some-system-unit" I was referring to the part "

Re: [systemd-devel] Systemctl thinks a service file exists that does not

2023-08-28 Thread Andrei Borzenkov
On Mon, Aug 28, 2023 at 1:50 PM Cecil Westerhof wrote: > > Op ma 28 aug 2023 om 11:55 schreef Andrei Borzenkov : >> >> On Mon, Aug 28, 2023 at 12:27 PM Cecil Westerhof >> wrote: >> > >> > On debian 12, when Itype: >> > systemctl status spam >> > >> > and giving a tab I get: >> >

Re: [systemd-devel] Systemctl thinks a service file exists that does not

2023-08-28 Thread Cecil Westerhof
Op ma 28 aug 2023 om 11:55 schreef Andrei Borzenkov : > On Mon, Aug 28, 2023 at 12:27 PM Cecil Westerhof > wrote: > > > > On debian 12, when Itype: > > systemctl status spam > > > > and giving a tab I get: > > spamassassin-maintenance.service spamassassin.service > >

Re: [systemd-devel] Systemctl thinks a service file exists that does not

2023-08-28 Thread Andrei Borzenkov
On Mon, Aug 28, 2023 at 12:27 PM Cecil Westerhof wrote: > > On debian 12, when Itype: > systemctl status spam > > and giving a tab I get: > spamassassin-maintenance.service spamassassin.service > spamassassin-maintenance.timerspamd.service > > Still: > systemctl start

<    5   6   7   8   9   10   11   12   13   14   >