Re: [systemd-devel] hint to know the state of the service using function

2024-08-23 Thread Rajmohan. R
From: Cristian Rodríguez Sent: Friday, August 23, 2024 11:11 PM To: Rajmohan. R Cc: systemd-devel Subject: Re: [systemd-devel] hint to know the state of the service using function Caution: This email originated from outside of the KPIT. Do not click links or

Re: [systemd-devel] hint to know the state of the service using function

2024-08-23 Thread Cristian Rodríguez
On Fri, Aug 23, 2024 at 11:51 AM Rajmohan. R wrote: > Hi, > Below is the change related to logging of the units (service) while > changing the state [in]active_[exit/enter]. > > I did not get any hint from source code, to know the state change using > function, without querying the target system

[systemd-devel] hint to know the state of the service using function

2024-08-23 Thread Rajmohan. R
Hi, Below is the change related to logging of the units (service) while changing the state [in]active_[exit/enter]. I did not get any hint from source code, to know the state change using function, without querying the target system through CLI. Could someone from the forum help in providing a h

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 following drop-in, but still

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

2024-08-23 Thread Renjaya Raga Zenta
I use the following drop-in, but still error: "No such file or directory" ``` [Unit] After=systemd-tmpfiles-setup-dev.service systemd-udevd.service After=sysroot.mount sysboot.mount ConditionDirectoryNotEmpty=|/sysroot/usr/lib/repart.d [Service] ExecStartPre=/lib/systemd/repart-pre ``` In repart

Re: [systemd-devel] Updating network file during boot

2024-08-23 Thread Henti Smith
On Fri, 23 Aug 2024 at 10:44, Mantas Mikulėnas wrote: > I might be missing something, but... the systemd renaming is just another > udev rule, one in 80-net-setup-link, isn't it? Rules for the same interface > can't race with each other, they're processed linearly. (Rules for > *different* interf

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

2024-08-23 Thread Mikko Rapeli
Hi, On Fri, Aug 23, 2024 at 04:28:24PM +0700, Renjaya Raga Zenta wrote: > 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 boo

Re: [systemd-devel] Updating network file during boot

2024-08-23 Thread Mantas Mikulėnas
I might be missing something, but... the systemd renaming is just another udev rule, one in 80-net-setup-link, isn't it? Rules for the same interface can't race with each other, they're processed linearly. (Rules for *different* interfaces can race but that happens regardless of the method.) Last

[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] Updating network file during boot

2024-08-23 Thread Henti Smith
On Thu, 22 Aug 2024 at 19:07, Andrei Borzenkov wrote: > On 22.08.2024 16:56, Henti Smith wrote: > > I've switched to using "Property=" as follows: > > # Fixed MAC and name for enp6s0 (Block Diagram) when debug board is > not > > plugged in > > # Renamed to mvc-sw2 by PCI Address. > >