[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 ForwardToSy

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

2023-09-19 Thread Renjaya Raga Zenta
Hi, was my email not coming through? Regards. On Tue, Sep 12, 2023 at 12:06 PM Renjaya Raga Zenta < renjaya.ze...@formulatrix.com> wrote: > Hi, > > We have custom embedded device using SD Card as the main storage. > I think there are some concerns regarding how journald writ

[systemd-devel] Create a tmpfile with content from output of executing a command

2023-10-05 Thread Renjaya Raga Zenta
Hi list, I'd like to create a temporary file using systemd-tmpfiles. The file will contain merge of multiple text files. Can the argument field in tmpfiles.d be a path to an executable? So I can create a script to print the content of those multiple files. Or maybe there is another way to do this

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

2023-12-04 Thread Renjaya Raga Zenta
Hi, We want to implement our networking using systemd-networkd. We think systemd is stable enough right now, so we want to try more "systemd-only" solution. In our environment, we use RPS (Receive Packet Steering) for load balancing and scaling. It's a kernel feature implemented a long time ago.

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

2023-12-06 Thread Renjaya Raga Zenta
Hi, I am exploring OS image building with mkosi. It works great until I add TPM 2.0 in qemu. I found that the systemd-pcrphase-initrd.service failed. There are 3 pcrphase service: 1. systemd-pcrphase-initrd.service (failed) 2. systemd-pcrphase.service (ok) 3. systemd-pcrphase-sysinit.service (ok

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

2023-12-06 Thread Renjaya Raga Zenta
, 2023 at 8:02 PM Lennart Poettering wrote: > On Mi, 06.12.23 18:28, Renjaya Raga Zenta (ragaze...@gmail.com) wrote: > > > Hi, > > > > I am exploring OS image building with mkosi. It works great until I add > TPM > > 2.0 in qemu. > > > > I found that the

How to correctly setup the partition table for systemd-sysupdate?

2024-01-08 Thread Renjaya Raga Zenta
Hi, I've been experimenting with systemd-sysupdate, trying to understand how it works. I created a Fedora 39 image¹ with mkosi from the GitHub repo. It has 3 partitions: 1) esp 2) root 3) linux-generic (to put updates) The root and third partition will be expanded on firstboot via systemd-growfs

Re: How to correctly setup the partition table for systemd-sysupdate?

2024-01-08 Thread Renjaya Raga Zenta
You need (at > least) two of the same kind of partition to switch between whenever there's > an update > > On Mon, Jan 8, 2024, 06:46 Renjaya Raga Zenta wrote: > >> Hi, >> >> I've been experimenting with systemd-sysupdate, trying to understand how >> it

[systemd-devel] How to show cylon animation on purpose?

2024-02-20 Thread Renjaya Raga Zenta
Hi list, Is it possible to create a startup service which triggers cylon animation? I see that the animation is related to running jobs. Sometimes I see it when shutting down. I'm curious if it can be triggered on purpose. Thanks.

[systemd-devel] DynamicUser and udev uaccess

2024-07-18 Thread Renjaya Raga Zenta
Hi there, We have a service using DynamicUser=yes which interacts with some USB scanners. It seems TAG+="uaccess" is already set by 70-uaccess.rules as we use libsane. But unfortunately, the service cannot access the scanner unless we set MODE="666" manually in another udev rule. Is it the expect

Re: [systemd-devel] DynamicUser and udev uaccess

2024-07-19 Thread Renjaya Raga Zenta
Is there another way to allow DynamicUser to access the USB scanner instead of setting MODE="666"? Or can the DynamicUser be marked as a logged-in user? Thanks. On Fri, Jul 19, 2024 at 11:03 AM Andrei Borzenkov wrote: > On 19.07.2024 05:01, Renjaya Raga Zenta wrote: > > H

[systemd-devel] CopyBlocks= from initrd systemd-repart

2024-08-23 Thread Renjaya Raga Zenta
Hi, I want to duplicate partition 1 and partition 2 using systemd-repart. This is for SBC, I use mkosi to create the OS image. By default, it needs 2 partitions 1. Boot partition: FAT32 used by 1st stage bootloader 2. Root partition: EXT4 This works fine. Then I want to create "recovery mode",

Re: [systemd-devel] CopyBlocks= from initrd systemd-repart

2024-08-23 Thread Renjaya Raga Zenta
re ``` In repart-pre, I checked /dev/gpt-part-boot and /dev/gpt-part-root actually exist. On Fri, Aug 23, 2024 at 4:45 PM Mikko Rapeli wrote: > Hi, > > On Fri, Aug 23, 2024 at 04:28:24PM +0700, Renjaya Raga Zenta wrote: > > Hi, > > > > I want to duplicate partition 1

Re: [systemd-devel] CopyBlocks= from initrd systemd-repart

2024-08-23 Thread Renjaya Raga Zenta
Ok, I've just found that this use case isn't supported. "Copying from block device node is not permitted in --image=/--root= mode, refusing." I guess I should use Format= and CopyFiles= instead. On Fri, Aug 23, 2024 at 5:44 PM Renjaya Raga Zenta wrote: > I use the