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

2023-09-05 Thread Lennart Poettering
property via some udev rule to something reasonable, for the devices you add... I have no idea how that looks like for your specific type of devices. Lennart -- Lennart Poettering, Berlin

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

2023-09-05 Thread Lennart Poettering
nchronization guarantess since journalctl started that way will just read the data from the journal files unsynchronized as everyeone else too. Lennart -- Lennart Poettering, Berlin

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

2023-09-05 Thread Lennart Poettering
nal kernels, instead of sd-boot/sd-stub and UKIs. PCR measurements are messy there, and the pcr signature stuff as implemented in systemd-measure doesn't work there. Lennart -- Lennart Poettering, Berlin

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

2023-09-05 Thread Lennart Poettering
ot;ukify" that does all of this for you in one relatively easy step, it's our recommended approach to building UKIs these days. Lennart -- Lennart Poettering, Berlin

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

2023-09-11 Thread Lennart Poettering
tirely complete yet. Sorry! It's such a thankless job! But it's definitely on our TODO list. If you can't guess how things work from the header, let us know, we can provide you here with the necessary info to get things off the ground. Lennart -- Lennart Poettering, Berlin

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

2023-09-11 Thread Lennart Poettering
t; to specify it as the root partition and exclude /usr and /var in it? > Any help would be appreciated. If you want /etc/ split off, then the discoverable partition spec won't help you: you have to mount it explicitly from your initrd. Lennart -- Lennart Poettering, Berlin

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

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

2023-09-11 Thread Lennart Poettering
cmdline='ro rhgb' > > Then added a boot entry: > > efibootmgr -c -d /dev/sda -p 1 -l /EFI/FEDORA/UKI/VMLINUZ612.EFI -L "Fedora > > UKI" > > Unfortunately when trying to boot this I get: > > Bad kernel image: Load Error That suggests the kernel yo

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

2023-09-14 Thread Lennart Poettering
of the question... Hence, TLDR: don't make the lock file a symlink. (Also, why would you even?) Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Is systemd-cryptsetup binary internal?

2023-09-18 Thread Lennart Poettering
tracker) > Thanks in advance for indicating, if systemd-cryptsetup (the binary) is a > tool users may rely on. Yes, absolutely. The only reason when we might break things for you is when we one day move it from /usr/lib to /usr/bin, ;-) Hence: the call interface is certainly stable, the loca

Re: [systemd-devel] Is systemd-cryptsetup binary internal?

2023-09-18 Thread Lennart Poettering
> > > > Why was the decision taken to put these into /usr/lib/systemd instead of > /usr/libexec/systemd/? That's a Fedoraism. Why would one put something there? /usr/lib/ is where private arch-dependent package stuff goes. What's the rationale for /usr/libexec/ though? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Systemd cgroup setup issue in containers

2023-09-29 Thread Lennart Poettering
#x27;s a window where a new process can > get in the way. One possible solution/workaround in systemd would be to > retry under this condition. Or perhaps this should be considered a bug in > the container runtimes? Yes, that's what I think. They should fix that. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Help! Reached target Local File Systems order is incorrect

2023-10-10 Thread Lennart Poettering
nfiguration during the initial transaction if avoidable. Better approaches are to put together generators or so, which can augment the set of units and their dependencies already when the first transaction is put together. https://www.freedesktop.org/software/systemd/man/systemd.generator.html Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Support for loading Multiple DTBs from UKI image

2023-10-11 Thread Lennart Poettering
UKI image in system-boot? > Or is there any UEFI interface hook to implement such a change in UEFI to > make a selection of DTB, just like DT_FIXUP ? There's a PR for this: https://github.com/systemd/systemd/pull/28959 But it hasn't seen progress in the past 3 weeks. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to use systemd-growfs* services with GPT automount

2023-10-24 Thread Lennart Poettering
"ro" or "rw" on the kernel cmdline? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to get Credential into Environment variable?

2023-10-24 Thread Lennart Poettering
ly and only wants env vars or cmdline params, then you can script around this, with a script like this: ```c #!/bin/bash read -r MYCRED < "$CREDENTIALS_DIRECTORY"/mycred export MYCRED exec mybinary ``` you get the idea. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to use systemd-growfs* services with GPT automount

2023-10-25 Thread Lennart Poettering
l ro/rw state of the disks, expecting that /etc/fstab later changes things to the final setting. And if neither are specified we imply "ro". Hence, you have two choices: define an /etc/fstab (which of course is not what you want with gpt-auto) or just add "rw" to the kernel cmdline. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Help! iSCSI based file systems with "_netdev" causing ordering cycles to occur (random services and mounts fail)

2023-10-27 Thread Lennart Poettering
want that /tmp/ is mounted after the network, but your network is configured really late. But /tmp is necessary during early boot. BOOM! Two ways out: 1. Don't make /tmp an iscsi mount. Bad idea anyway. Just use tmpfs for it, like everyone else. 2. Upgrade to a better network management solution that has no problems with running in early boot, for example systemd-networkd. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Help! iSCSI based file systems with "_netdev" causing ordering cycles to occur (random services and mounts fail)

2023-10-30 Thread Lennart Poettering
stab is specified for > "/var" or "/usr". If /usr/ is split off it *must* be mounted even earlier than /tmp/: it must be mounted in the initrd, nothing else is supported, sorry. If /var/ is split off it must be mounted at the same point as /tmp/, i.e some time in early boot, not necessarily in the initrd though. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Help! iSCSI based file systems with "_netdev" causing ordering cycles to occur (random services and mounts fail)

2023-10-30 Thread Lennart Poettering
On Mo, 30.10.23 10:17, Lennart Poettering (lenn...@poettering.net) wrote: > On Fr, 27.10.23 20:46, Tony Rodriguez (unixpro1...@gmail.com) wrote: > > > Andrea asked for more details so I have provide this verbose output. > > > > 1) Lennart's recommendation of removing

Re: [systemd-devel] Low memory dbus signal for GMemoryMonitor

2023-11-13 Thread Lennart Poettering
he kernel OOM. It should be possibly to implement a GMemoryMonitor on top of the kernel APIs directly, using the information systemd gives you. See the documentation. It even briefly mentions GMemoryMonitor at the end. If you have any questions about details, feel free to ask! Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Does coredumpctl info support minidebuginfo / gnu_debugdata ?

2023-11-17 Thread Lennart Poettering
it. So it certainly works, it's how this all works on my local machine since forever. Maybe ask your distro for help, it's generally an integration issue of distributions i this doesn't work. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to properly wait for udev?

2023-11-27 Thread Lennart Poettering
t;return access("/run/udev/queue", F_OK) < 0 ? > (errno == ENOENT ? true : -errno) : false; > } This doesn't really work. udev might still process the device in the background. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd: questions about dbus dependency service

2023-11-28 Thread Lennart Poettering
IPC (varlink), that does not involve any broker, and thus always works. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to properly wait for udev?

2023-11-29 Thread Lennart Poettering
On Mo, 27.11.23 21:32, Richard Weinberger (richard.weinber...@gmail.com) wrote: > On Mon, Nov 27, 2023 at 9:29 AM Lennart Poettering > wrote: > > If they conceptually should be considered block device equivalents, we > > might want to extend the udev logic to such UBI dev

Re: [systemd-devel] Systemd-nspawn single process

2023-12-01 Thread Lennart Poettering
t look like it has an OS tree (/usr/ directory is missing). Refusing. And that's your explanation: you need an /usr/ directory. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd: questions about dbus dependency service

2023-12-04 Thread Lennart Poettering
On Mo, 04.12.23 13:01, Pintu Agarwal (pintu.p...@gmail.com) wrote: > Hi, > Any comments or suggestions on the below ? I already replied. https://lists.freedesktop.org/archives/systemd-devel/2023-November/049706.html Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Configure netdev RPS using systemd-networkd

2023-12-04 Thread Lennart Poettering
tcher? I see no reason why we wouldn't add a high-level option for this to .link files. We are happy to review/merge a patch. Please submit via GitHub. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Where to install UKI cmdline addons in the root partition

2023-12-05 Thread Lennart Poettering
and document > it somewhere. > > What do you think? I commented on the github issue. At this time I think more people are subscribed to that than watch this ML. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to use systemd-sysext addons and systemd-stub to extend an UKI initrd

2023-12-05 Thread Lennart Poettering
www.flatcar.org/docs/latest/provisioning/sysext/ There is a video from ASG how this fits together: https://www.youtube.com/watch?v=XTy3scX6rF4 There's no tutorial how to put this together though. Contributing that would be very welcome of course! Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to debug systemd-pcrphase-initrd.service failure

2023-12-06 Thread Lennart Poettering
rd.service - TPM2 PCR > Barrier (initrd). > ... > systemd-pcrphase[130]: Failed to load TPM2 libraries: Operation not > supported > ... It appears you are lacking the tpm2-tss libraries in your initrd image. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Manual start of user@.service failed with permission denied

2023-12-06 Thread Lennart Poettering
untime-dir@.service which is responsible for creating that dir with right perms. is 504 a system user? or a regular user? systemd generally assumes the boundary between system and regular users is between 999 and 1000. But user@.service is really just for regular users, not system users, hence my qu

Re: [systemd-devel] Manual start of user@.service failed with permission denied

2023-12-07 Thread Lennart Poettering
me the same result as > the 503. It's a bad idea to run user stuff as system user. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Manual start of user@.service failed with permission denied

2023-12-08 Thread Lennart Poettering
> later. Well, that's not supported then. You need XDG_RUNTIME_DIR set up properly, and that's what the PAM module gives you. If you turn off the PAM module then you get to keep the pieces, you voided your warranty. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-11 Thread Lennart Poettering
ow authentication of every component of your process shall work, how unatteneded disk encryption shall operate and how measurement shall work. Security must be built into things from the beginning, not be added as an afterthought. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-11 Thread Lennart Poettering
On Mo, 11.12.23 10:57, Lennart Poettering (mzerq...@0pointer.de) wrote: > Which leaves item 1, which is a bit harder to address. We have been > discussing this off an on internally too. A generic solution to this > is hard. My current thinking for this could be something like this, >

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-11 Thread Lennart Poettering
care. > Teach the kernel not to decompress and process the whole > thing and mount it like an erofs alternatively. Does this sound crazy > or reasonable? You are re-inventing the traditional "initrd" logic of the kernel which was a ramdisk (i.e. a block device /dev/ram0), that was filled with some fs of your choice loaded by the boot loader. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-11 Thread Lennart Poettering
of the UKI btw, so they end up being loaded together with the rest of the kernel, and need no verity becaused signed along with the UKI itself. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Lennart Poettering
at sd-stub also generates initrd cpios on the fly, to pass credentials and system extension images to the kernel, and you can't really mix erofs and cpio initrds into one) Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Lennart Poettering
emd-pcrextend, systemd-pcrlock and so on. I am sorry, but doing reasonable disk encryption with TPM involved means you either buy into the whole systemd offer (i.e. with the service manager) or you have to rewrite your own systemd. But maybe I am misunderstanding what you are saying here. Lennart

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Lennart Poettering
cess. The wrong image will > simply fail to mount as its root hash will be wrong. systemd-sysext already covers this just fine: you can encode in their "extension-release" file to which base images they match up, and systemd-syext will then find the right one to apply, and ignore the others. Thus just make sure you drop in the sysexts fist, and the UKI last and things should be perfectly robust. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Lennart Poettering
timize the initrd a bit by making it an erofs/memmap thing and so on. And make sure the initrd only contains stuff you always need, so that reading it all into memory is necessary anyway, and hence any approach that tries to run even the initrd off a disk image won't be necessary becuase you need to read everything anyway. Lennart -- Lennart Poettering, Berlin

Re: IPv6 Compliance for networkd

2023-12-12 Thread Lennart Poettering
ar? Anyway, judging by your email address I understand you work for HPE, so I'd assume your company actually has the funds to payroll this though, if this matters to you. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Lennart Poettering
another big drawback. sysexts are erofs or squashfs file systems with verity backing. Only the sectors you access are decompressed. Lennart -- Lennart Poettering, Berlin

Re: systemd units disabled when calling systemctl daemon-reload

2023-12-12 Thread Lennart Poettering
rticular system. Please state OS, systemd version and provide relevant logs. Otherwise this is not actionable. Lennart -- Lennart Poettering, Berlin

Re: networkd RetransmitSec - how to make it work on a host?

2023-12-12 Thread Lennart Poettering
egardless of whether it was changed by: Please file this as git issue. It sounds like a bug report, which should really go to github. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-13 Thread Lennart Poettering
o the other at boot time. Lennart -- Lennart Poettering, Berlin

Re: Ton of random units "could not be found"

2023-12-16 Thread Lennart Poettering
usr/share/systemd/tmp.mount but isn't an enabled unit or anything, if I > try to enable or unmask it I'm just told "Unit tmp.mount could not be > found." or "Unit file tmp.mount does not exist." /usr/share/systemd/ is not a directory systemd ever looks into for unit files. If debian packaged something there, this smells like a bug. Please report to your distro. Lennart -- Lennart Poettering, Berlin

Re: [RFC] initoverlayfs - a scalable initial filesystem

2023-12-16 Thread Lennart Poettering
On Do, 14.12.23 02:17, Nils Kattenbeck (nilskem...@gmail.com) wrote: > On Wed, Dec 13, 2023 at 10:03 AM Lennart Poettering > wrote: > > > > On Di, 12.12.23 23:01, Nils Kattenbeck (nilskem...@gmail.com) wrote: > > > > > > sysexts are erofs or squashfs fi

Re: Query on dynamic update of Kernel comandline

2023-12-21 Thread Lennart Poettering
; to kernel commandline I don't know what this is, and what that has to do with uefi, sd-boot or dt? Anyway, the question is very confusing, I am not surprised noone answered so far. Lennart -- Lennart Poettering, Berlin

Re: systemd-sysupdate support for slow rollout (aka A/B testing)

2024-01-02 Thread Lennart Poettering
c(). But better than app-specific machine IDs are no machine IDs at all in the protocol, if we can get away with it. Hence, my idea of doing the rollout percentage logic client-side. Lennart -- Lennart Poettering, Berlin

Re: sysupdate: Limit update to at most one major version

2024-01-02 Thread Lennart Poettering
sion=. Happy to review a patch, merge something like this (at least file an RFE issue) Lennart -- Lennart Poettering, Berlin

Re: sysupdate: Limit update to at most one major version

2024-01-02 Thread Lennart Poettering
n comparison explicit. This would implement a tiny subset of the ConditionKernelVersion= logic, and simply default to imply <= if the comparison is not specified explicitly. Of course, a similar logic should then be implemented for MinVersion, i.e. >= and > > Should we continue this discussion on the mailing list or an issue? Issue is better. Lennart -- Lennart Poettering, Berlin

Re: systemd-sysupdate support for slow rollout (aka A/B testing)

2024-01-02 Thread Lennart Poettering
-roll the dice" for each republished name. My thinking was that clients would look at multiple entries which only differ by the percentage (i.e. are identical in name and version) and drop all of them but the one with the highest percentage, and ignore all others. Lennart -- Lennart Poettering, Berlin

Re: systemd-sysupdate support for slow rollout (aka A/B testing)

2024-01-02 Thread Lennart Poettering
cessary and instead customers often pay > the enterprise to perform all the management on their behalf. I think adding some concept for this would be entirely fine, but this really should be opt-in. Happy to review a patch for this. I think in the longer run we need to hook this up with remot

Re: Can mkosi replace Kickkstart / Calamares?

2024-01-02 Thread Lennart Poettering
he use case. The focus is clearly on automatic partitioning here though, if people want to manually and precisely set the sizes of each partition in a UI, then repart is not the tool they should use. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Potential systemd CoredumpFilter sandboxing issue

2024-01-10 Thread Lennart Poettering
/proc//coredump_filter. > Am I wrong in understanding that private-anonymous usually maps to ? > Also, wouldn't 0001 show something like coredump_filter=0x01 or > CoredumpFilter=shared-anonymous? I cannot parse this. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Activation environment(s)?

2024-01-15 Thread Lennart Poettering
ut down a service/session, then intend to give guarantees that the shut down time is bounded: we first send SIGTERM, and start a timeout. If by that timeout there are still processes left we SIGKILL to put an end to things. If we'd somehow distinguish new/old processes then we couldn'

Re: [systemd-devel] Permanently remove services

2024-01-18 Thread Lennart Poettering
that silently just skips all these so that everything always works fully automatically and robustly without any ugly error output. hence, any chance you can provide logs about this? and what kind of system is this? i.e. does it really lack a tpm? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Permanently remove services

2024-01-18 Thread Lennart Poettering
On Do, 18.01.24 22:26, Morten Bo Johansen (morte...@hotmail.com) wrote: > On 2024-01-18 Lennart Poettering wrote: > > > hence, any chance you can provide logs about this? and what kind of > > system is this? i.e. does it really lack a tpm? > > I shall try to accommodate y

Re: [systemd-devel] Permanently remove services

2024-01-18 Thread Lennart Poettering
your system has only a TPM 1.2 device? (maybe your bios allows switching between TPM 2.0 and 1.2 modes) It could be that we simply misdetect the tpm 1.2 case, i admittedly never tested things on such a system. how old is that PC? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Permanently remove services

2024-01-19 Thread Lennart Poettering
he unit being enabled means that one wants to > use it if possible - and if the libraries are missing that should be > noticeable to the user instead of a silent fail. No, the libs are installed, that's what the "systemd-creds has-tpm2" output shows. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Bump: Testing LogFilterPatterns= on user-level services

2024-01-26 Thread Lennart Poettering
this it's unlikely to be supported. We should document this however I guess. Hence if you file an issue that would be more than welcome, so that we can keep trakc of this. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Delaying VM startup until block devices are available

2024-01-26 Thread Lennart Poettering
his is default behaviour. Anything listed in /etc/crypttab is ordered before cryptsetup.target, which is ordered before sysinit.target, which is ordered before basic.target, which is ordered before regular services. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Systemd units complains about cgroup with 5.15.x kernel

2024-02-01 Thread Lennart Poettering
... and I do not have a serial console. > > I am currently digging into systemd code to find out what is possibly wrong > .. but if anyone gets a clue, I would appreciate ! Educated guess, you have no cgroupvs2 or so? Would make sense to provide logs?, use strace to check what precisely fails? Ask you distro for help? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-pcrlock Failed to submit super PCR policy

2024-02-05 Thread Lennart Poettering
On Mo, 05.02.24 09:24, Dominick Grift (dominick.gr...@defensec.nl) wrote: Please run "SYSTEMD_LOG_LEVEL=debug systemd-pcrlock make-policy" from the command line, then file a github issue about this, and pastethe output there. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Lennart Poettering
watchdog by default these days on hw that has it (which are most PCs). > 2: How do I get Systemd to freeze to test such program? I mean, if I kill > Systemd, the kernel would crash so I have to somehow tell Systemd to freeze? Not really, the kernel blocks SIGSTOP for PID1. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Lennart Poettering
On Mo, 05.02.24 13:54, Lennart Poettering (lenn...@poettering.net) wrote: > you can just use the usual hw watchdog. If pid1 dies it will not ping > the hw watchdog, and thus a reset is triggered automatically. In fact > we actually configure the hw watchdog by default these days on hw t

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Lennart Poettering
nd then trigger a `systemctl reboot --force --force` > command As mentioned elsewhere in this thread just use RuntimeWatchdogSec= in systemd-system.conf(5) Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] What creates a new machine-id ?

2024-02-08 Thread Lennart Poettering
e sure that whatever happens, on boot we initialize it. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] ConditionNeedsUpdate, read-only /usr, and sysext

2024-02-14 Thread Lennart Poettering
though about the mixture of sysext and ConditionNeedsUpdate=. This is unchartered territory. But I think we can fix this. But please open issues about this. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Issue with systemd-logind

2024-02-14 Thread Lennart Poettering
s like an error message from some weston thing. Please ask that community for help. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Lennart Poettering
nd check whether it matches "Particular > String" or not. You can use sd-device.h, allocate an sd_device_enumerator_new(), then apply some filter via sd_device_enumerator_add_match_sysattr() and then enumerate through it via sd_device_enumerator_get_device_first()/sd_device_enumerato

Re: [systemd-devel] logind: Activating session/opening seat fails in systemd v254

2024-02-16 Thread Lennart Poettering
). Neither Weston nor libseat (whatever that is) are a systemd thing. Please contact the relevant projects for help? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Handle device node timeout?

2024-02-19 Thread Lennart Poettering
with this case: https://github.com/systemd/systemd/pull/30194 That should hopefully solve this systematically and generically. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-02-19 Thread Lennart Poettering
kernel module at all? that smells... Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-02-19 Thread Lennart Poettering
s, generate the required deps to pull in tee-supplicatnt@.service, and add the dev-tpmrm0.device dep just like systemd-tpm2-generator does. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-02-20 Thread Lennart Poettering
t dependency graph. It's the fact that you want things dynamic (i.e. responsive to the fact whether your system has a specific kind of tpm device/secure enclave) that means you have to do with a generator. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Can I provide separate enabling for dbus-activation and "normal" start ?

2024-02-23 Thread Lennart Poettering
ommon name as alias. But one unit cannot have two distinct [Install] sections, if that's what you are looking for. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Query on sshd.socket sshd.service approaches

2024-03-06 Thread Lennart Poettering
t was clearly a buggy (local?) unit file, I am not aware of any big distro shipping such a unit file. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Query on sshd.socket sshd.service approaches

2024-03-06 Thread Lennart Poettering
On Mi, 06.03.24 14:44, Shreenidhi Shedi (shreenidhi.sh...@broadcom.com) wrote: > > Lennart Poettering, Berlin > > Thanks a lot for the responses Andrei, Poettering . > We took it from blfs in PhotonOS. > https://www.linuxfromscratch.org/blfs/view/11.3-systemd/introduction/syste

Re: [systemd-devel] Query on sshd.socket sshd.service approaches

2024-03-06 Thread Lennart Poettering
possible (and mode 1 if they > > don#t want to patch the support for mode 3 in) > > So mode 2 only really makes sense for deployments which are only ever > accessible from intranets with little junk traffic. What precisely do you think is missing in systemd that PollLimitIntervalSec=/PollLimitBurst=, MaxConnectionsPerSource=, MaxConnections= can't cover? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to install libudev from source?

2024-03-07 Thread Lennart Poettering
On Do, 07.03.24 17:09, Vru Inbvi (vru.in...@gmail.com) wrote: > Hi, > > I am struggling to install libudev from source (with Ubuntu) > Can someone please explain what the correct way to do this is, or point me > to relevant/updated documentation? https://systemd.io/HACKING Lenn

Re: [systemd-devel] Reducing unmount/mount of partitions on soft-reboot

2024-03-14 Thread Lennart Poettering
n it, so that it does not get an implicit Conflicts= dependency on umount.target. This is briefly documented on the systemd-soft-reboot.service man page btw. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Custom target between basic and multi-user targets

2024-04-04 Thread Lennart Poettering
On Do, 04.04.24 14:34, Agrain Patrick (patrick.agr...@al-enterprise.com) wrote: > Hello, > > Is it possible to insert a custom foo.target between basic.target > and multi-user.target by just adding some > After/Before/Wants/Requires in the foo.[target | service] files ? Yes. Lenn

Re: [systemd-devel] EXT: Re: Custom target between basic and multi-user targets

2024-04-09 Thread Lennart Poettering
ems might not be, they are ordered against remote-fs.target instead, which is *not* ordered before basic.target (simply because various network management solutions do not run in early boot) Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to debug systemd services failing to start with 11/SEGV?

2024-04-09 Thread Lennart Poettering
rvices crashing: systemd-udevd > and systemd-timesyncd, also with status 11/SEGV which is segmentation > fault, right? Yes. > I had this board running with an older version of systemd, but I can > not remember which was the last good version. > > Could anyone give me a hint pleas

Re: [systemd-devel] Serial console flow control will stuck systemd

2024-04-12 Thread Lennart Poettering
" will generally report "ixon" on terminals, including graphical ones. And C-S/C-Q is generally understood to just work to suspend terminal output. Hence, turning this off would probably be quite confusing to most. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-04-15 Thread Lennart Poettering
driver. Or does the "tpm-ftpm_tee" thing carry no modalias info that autoloads it if some specific hw is around? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-04-15 Thread Lennart Poettering
On Mo, 15.04.24 17:23, Mikko Rapeli (mikko.rap...@linaro.org) wrote: > Hi, > > On Mon, Apr 15, 2024 at 04:02:46PM +0200, Lennart Poettering wrote: > > On Mo, 15.04.24 10:38, Mikko Rapeli (mikko.rap...@linaro.org) wrote: > > > > > Hi, > > > > &g

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-04-15 Thread Lennart Poettering
On Mo, 15.04.24 17:41, Lennart Poettering (lenn...@poettering.net) wrote: > > or the services needed for systemd-repart config with Encrypt=tpm2 > > Ah, repart is interesting. We are missing the tpm2.target dependency > there. That's a bug. Will fix. → https://github.com/

Re: [systemd-devel] Issues supporting systems with and without TPM and firmware TPM (was Re: Handle device node timeout?)

2024-04-16 Thread Lennart Poettering
On Di, 16.04.24 15:02, Mikko Rapeli (mikko.rap...@linaro.org) wrote: > Hi, > > On Mon, Apr 15, 2024 at 05:41:00PM +0200, Lennart Poettering wrote: > > Would be good to have that with systemd.log_target=debug, to see if > > tpm2.target even gets enqueued. > > Here is

Re: [systemd-devel] Custom nobody user/group name not equivalent

2024-04-17 Thread Lennart Poettering
me them the same way. Derparting from that rule just to be different is just annoying. This is a warning, to push distros to just stop trying to be different in this corner case, it's a waste of brain cells having to deal with pointless differences like this everywhere. let me turn this around: why do you think it's a great idea for slackware being its own thing and naming these groups completely differently for everyone? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Fastest way to dump last X Mo of logs from the journal ?

2024-04-25 Thread Lennart Poettering
om a given number of most recent months? if so, just use: journalctl --since=-3month Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Fastest way to dump last X Mo of logs from the journal ?

2024-04-25 Thread Lennart Poettering
On Do, 25.04.24 12:49, Andy Pieters (syst...@andypieters.me.uk) wrote: > On Thu, 25 Apr 2024 at 12:48, Lennart Poettering > wrote: > > > On Mi, 24.04.24 14:48, Etienne Champetier (champetier.etie...@gmail.com) > > wrote: > > > > > > what is "last X Mo

Re: [systemd-devel] systemd prerelease 256-rc1

2024-04-26 Thread Lennart Poettering
tement. I know that Fedora is sadly behind on boot loader topics, but that's no reason for changing our stance from systemd upstream on these things. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd prerelease 256-rc1

2024-04-26 Thread Lennart Poettering
re we shouldn't let the Linux platform stagnate like this. I think it really should be time to clean up /boot/efi/, we don't want that people get bored after the sbin-merge is complete, after all! Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd prerelease 256-rc1

2024-04-26 Thread Lennart Poettering
ora thing (which I guess I need to > remind this audience that I am involved in more than Fedora, and every > distribution I work on does use /boot/efi instead of /efi) is weird > since it's not just Fedora. It's pretty much everyone. Yeah, as the NEWS entry says, /boot/efi/ is commonly found. So? Doesn't change the fact it's a bad idea and from systemd's PoV an obsolete concept. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd prerelease 256-rc1

2024-04-26 Thread Lennart Poettering
, we can certainly agree that we have different concepts/metrics of "hard" or "easy" tasks. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] keeping a backup ESP partition in sync

2024-05-22 Thread Lennart Poettering
so involved so quickly. (as you then probably also need "bootctl add-secondary-esp" and "bootctl remove-secondary-esp") But anyway, if this matters to you, feel free to send a patch for this, but it's not really job for a day or two, it's much more involved than one might think. Lennart -- Lennart Poettering, Berlin

<    1   2   3   4   5   6   7   8   9   10   >