Re: [systemd-devel] systemd link file rename eth0 do not take effect

2025-06-17 Thread Andrei Borzenkov
17.06.2025 09:20, Mantas Mikulėnas wrote: On another note, even though NamePolicy doesn't provide any names in your case, you should still clear it in general: [Link] NamePolicy= Name=mycustometh Why? NamePolicy is empty by default and only one .link file is applied. There should be noth

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Claudius Heine
Hi Lennart, On Tue Jun 17, 2025 at 10:24 AM CEST, Lennart Poettering wrote: > On Di, 17.06.25 09:15, Claudius Heine (c...@denx.de) wrote: > >> Hi, >> >> I am currently looking for a way to directly create and encrypt a LUKS >> partition using a hardware token (TPM2, in this case) without requiring

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Lennart Poettering
On Di, 17.06.25 10:33, Claudius Heine (c...@denx.de) wrote: > > systemd-repart seems to be what you are looking for. It can > > create partitions at boot them, set up LUKS for them, lock them to TPM > > and put a file system inside. It's really the tool of choice if you > > want to augment disk im

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Lennart Poettering
On Di, 17.06.25 09:15, Claudius Heine (c...@denx.de) wrote: > Hi, > > I am currently looking for a way to directly create and encrypt a LUKS > partition using a hardware token (TPM2, in this case) without requiring > an intermediary password/keyfile. > > IIUC, cryptsetup doesn't communicate with a

[systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Claudius Heine
Hi, I am currently looking for a way to directly create and encrypt a LUKS partition using a hardware token (TPM2, in this case) without requiring an intermediary password/keyfile. IIUC, cryptsetup doesn't communicate with any hardware tokens, or creates keys in them, while systemd-cryptenroll do

Re: [systemd-devel] systemd link file rename eth0 do not take effect

2025-06-17 Thread He, Guocai (CN)
All: Thank you for all your reply and the useful advice. There is progress on this issue In logs I find this: Jun 17 02:46:02 intel-x86-64 systemd-udevd[252]: Skipping overridden file '/lib/udev/rules.d/80-net-setup-link.rules'. So I find: root@intel-x86-64:~# ls -l /etc/udev/rules.d/80-net-se

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Claudius Heine
On Tue Jun 17, 2025 at 10:54 AM CEST, Lennart Poettering wrote: > On Di, 17.06.25 10:33, Claudius Heine (c...@denx.de) wrote: > >> > systemd-repart seems to be what you are looking for. It can >> > create partitions at boot them, set up LUKS for them, lock them to TPM >> > and put a file system ins

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Claudius Heine
Hi Mikko, On Tue Jun 17, 2025 at 11:56 AM CEST, Mikko Rapeli wrote: > Hi, > > On Tue, Jun 17, 2025 at 11:32:37AM +0200, Claudius Heine wrote: >> On Tue Jun 17, 2025 at 10:54 AM CEST, Lennart Poettering wrote: >> > On Di, 17.06.25 10:33, Claudius Heine (c...@denx.de) wrote: >> >> > systemd-repart s

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Mikko Rapeli
Hi, On Tue, Jun 17, 2025 at 11:32:37AM +0200, Claudius Heine wrote: > On Tue Jun 17, 2025 at 10:54 AM CEST, Lennart Poettering wrote: > > On Di, 17.06.25 10:33, Claudius Heine (c...@denx.de) wrote: > >> > systemd-repart seems to be what you are looking for. It can > >> > create partitions at boot

Re: [systemd-devel] [Question] Create and (re)encrypt LUKS partition directly with hw token

2025-06-17 Thread Mikko Rapeli
Hi, On Tue, Jun 17, 2025 at 01:37:19PM +0200, Claudius Heine wrote: > On Tue Jun 17, 2025 at 11:56 AM CEST, Mikko Rapeli wrote: > > On Tue, Jun 17, 2025 at 11:32:37AM +0200, Claudius Heine wrote: > >> On Tue Jun 17, 2025 at 10:54 AM CEST, Lennart Poettering wrote: > >> > On Di, 17.06.25 10:33, Cla

Re: [systemd-devel] systemd link file rename eth0 do not take effect

2025-06-17 Thread Kevin P. Fleming
On Tue, Jun 17, 2025, at 02:20, Mantas Mikulėnas wrote: > nfsroot= causes the interface to be brought up very early, before udev > starts, and before it has a chance to apply its rules and .link files. > > > > Before kernel 6.2, it was not possible to rename interfaces that were already > "up"