Package: systemd
Version: 257.9-1~deb13u1
Severity: normal

Dear Maintainer,

i use a script to pin the network interface names to fixed values. This script 
deposits the generated .link files into "/usr/local/lib/systemd/network/".
I need the pinning to happen before the root filesystem gets mounted, since i 
use Network-Bound Disk Encryption to encrypt my root fs.

However i discovered, that the relevant .link files are not copied from 
"/usr/local/lib/systemd/network/" into the initramfs.
The udev hook script at "/usr/share/initramfs-tools/hooks/udev" only copies the 
.link files from "/usr/lib/systemd/network/" and "/etc/systemd/network".

Since systemd respects link files in all three paths, one would expect the 
files of all three paths to also be copied into the initramfs for pinning 
before the root fs gets mounted.

Sincerely

Arne Stephan


Excerpt from the udev hook script in systemd package version 259.1-1 (lines 
37-42):

# copy .link files containing interface naming definitions
mkdir -p "$DESTDIR/usr/lib/systemd/network/"
find -L /usr/lib/systemd/network -name '*.link*' -execdir cp -r -pt 
"$DESTDIR/usr/lib/systemd/network/" '{}' +
if [ -d /etc/systemd/network ]; then
  find -L /etc/systemd/network -name '*.link*' -execdir cp -r -pt 
"$DESTDIR/usr/lib/systemd/network/" '{}' +
fi


-- Package-specific info:

-- System Information:
Debian Release: 13.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.9-1-pve (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  libacl1            2.3.2-2+b1
ii  libapparmor1       4.1.1-pmx1
ii  libc6              2.41-12+deb13u1
ii  libmount1          2.41-5
ii  libpam0g           1.7.0-5
ii  libseccomp2        2.6.0-2
ii  libselinux1        3.8.1-1
ii  libssl3t64         3.5.4-1~deb13u2
ii  libsystemd-shared  257.9-1~deb13u1
ii  libsystemd0        257.9-1~deb13u1
ii  mount              2.41-5

Versions of packages systemd recommends:
ii  chrony [time-daemon]            4.6.1-3
ii  dbus [default-dbus-system-bus]  1.16.2-2
ii  linux-sysctl-defaults           4.12
ii  systemd-cryptsetup              257.9-1~deb13u1

Versions of packages systemd suggests:
pn  libtss2-tcti-device0  <none>
pn  polkitd               <none>
pn  systemd-boot          <none>
pn  systemd-container     <none>
pn  systemd-homed         <none>
pn  systemd-repart        <none>
pn  systemd-resolved      <none>
pn  systemd-userdbd       <none>

Versions of packages systemd is related to:
ii  dbus-user-session  1.16.2-2
pn  dracut             <none>
ii  initramfs-tools    0.148.3
ii  libnss-systemd     257.9-1~deb13u1
ii  libpam-systemd     257.9-1~deb13u1
ii  udev               257.9-1~deb13u1

-- no debconf information

Reply via email to