Bug#1074564: initramfs-tools: fails to include config udevd config files
Marc Lehmann
debian-reportbug at plan9.de
Mon Jul 1 02:42:58 BST 2024
Package: initramfs-tools
Version: 0.142
Severity: normal
Dear Maintainer,
initramfs-tools packages andf uses systemd-udevd in the initramfs, but does not package the
required .link files. Specifically, files and overrides from /etc are all missing, causing udevs to apply
the hardcoded defaults when naming interfaces and applying other settings.
* What exactly did you do (or not do) that was effective (or
ineffective)?
I have .link files and .link.d override directories in
/etc/systemd/network. The generated initramfs contains the link files from
/usr/lib/systemd/network/, but not the ones from etc., causing interfaces
to be named wrongly.
* What was the outcome of this action?
E.g. when I have a /etc/systemd/network/99-default.link.d/50-namepolicy.conf file with:
[Link]
NamePolicy=keep kernel
then some interfaces have the correct name and others don't after boot,
depending on which drivers have been loaded.
* What outcome did you expect instead?
The system configuration should be respected and not overriden by
hardcoded defaults in the initramfs.
-- Package-specific info:
-- initramfs sizes
-rw------- 1 root root 50M Jun 9 11:10 /boot/initrd.img-6.1.0-20-amd64
-rw------- 1 root root 50M Jun 11 09:31 /boot/initrd.img-6.1.0-21-amd64
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.1.0-21-amd64 root=/dev/mapper/cryptroot ro rootflags=subvol=rootfs mitigations=off pcie_aspm.policy=powersupersave root=/dev/mapper/cryptroot relatime zswap.enabled=0 modprobe.blacklist=nouveau,nvidiafb ip=10.0.0.1::10.0.0.5:255.255.255.240:::off rd.luks=0 libata.allow_tpm=1 vsyscall=xonly nvidia-drm.modeset=1 raid0.default_layout=1 syscall.x32=y intel_iommu=on iommu=pt workqueue.power_efficient=1 cpu0_hotplug irqaffinity=16-23 i915.fastboot=1 i915.modeset=1 preempt=voluntary split_lock_detect=off
-- /proc/filesystems
f2fs
ext3
ext2
ext4
btrfs
vfat
xfs
fuseblk
-- lsmod
Module Size Used by
tls 135168 0
nvidia_uvm 4669440 0
snd_seq_dummy 16384 0
snd_hrtimer 16384 1
snd_seq 90112 7 snd_seq_dummy
rpcsec_gss_krb5 36864 0
nfsv4 1052672 1
dns_resolver 16384 1 nfsv4
nfs 516096 4 nfsv4
fscache 376832 1 nfs
netfs 57344 1 fscache
vboxnetadp 28672 0
vboxnetflt 32768 0
vboxdrv 602112 2 vboxnetadp,vboxnetflt
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 36864 6 algif_hash,algif_skcipher
bnep 28672 2
z3fold 32768 1
wacom 135168 0
nvme_fabrics 32768 0
bridge 311296 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
tcp_bbr 20480 77
sch_fq 20480 1
cuse 16384 3
binfmt_misc 24576 1
nls_ascii 16384 1
nls_cp437 20480 1
x86_pkg_temp_thermal 20480 0
intel_powerclamp 20480 0
coretemp 20480 0
snd_sof_pci_intel_tgl 16384 0
snd_sof_intel_hda_common 188416 1 snd_sof_pci_intel_tgl
soundwire_intel 49152 1 snd_sof_intel_hda_common
soundwire_generic_allocation 16384 1 soundwire_intel
soundwire_cadence 40960 1 soundwire_intel
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
snd_sof 274432 2 snd_sof_pci,snd_sof_intel_hda_common
snd_sof_utils 20480 1 snd_sof
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
kvm_intel 380928 0
snd_hda_ext_core 40960 2 snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_soc_acpi_intel_match 81920 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
iwlmvm 385024 0
snd_soc_core 352256 4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress 28672 1 snd_soc_core
kvm 1142784 1 kvm_intel
i915 3055616 2
snd_intel_dspcfg 36864 2 snd_sof,snd_sof_intel_hda_common
uvcvideo 131072 0
snd_intel_sdw_acpi 20480 2 snd_sof_intel_hda_common,snd_intel_dspcfg
btusb 69632 0
irqbypass 16384 1 kvm
mac80211 1175552 1 iwlmvm
nvidia_modeset 1363968 6
btrtl 28672 1 btusb
videobuf2_vmalloc 20480 1 uvcvideo
btbcm 24576 1 btusb
videobuf2_memops 20480 1 videobuf2_vmalloc
rapl 20480 0
libarc4 16384 1 mac80211
snd_hda_codec 184320 2 snd_soc_hdac_hda,snd_sof_intel_hda
snd_usb_audio 376832 5
drm_buddy 20480 1 i915
btintel 45056 1 btusb
videobuf2_v4l2 36864 1 uvcvideo
btmtk 16384 1 btusb
videobuf2_common 73728 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
drm_display_helper 184320 1 i915
snd_hda_core 122880 5 snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_usbmidi_lib 45056 1 snd_usb_audio
iwlwifi 360448 1 iwlmvm
bluetooth 958464 29 btrtl,btmtk,btintel,btbcm,bnep,btusb
cec 61440 2 drm_display_helper,i915
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
processor_thermal_device_pci 16384 0
videodev 294912 3 videobuf2_v4l2,uvcvideo,videobuf2_common
mei_hdcp 24576 0
soundwire_bus 102400 3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
snd_rawmidi 53248 1 snd_usbmidi_lib
processor_thermal_device 20480 1 processor_thermal_device_pci
rc_core 69632 1 cec
pmt_telemetry 16384 0
processor_thermal_rfim 16384 1 processor_thermal_device
snd_seq_device 16384 2 snd_seq,snd_rawmidi
intel_rapl_msr 20480 0
intel_cstate 20480 0
processor_thermal_mbox 16384 2 processor_thermal_rfim,processor_thermal_device
pmt_class 16384 1 pmt_telemetry
snd_pcm 159744 9 snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core
ttm 94208 1 i915
mc 77824 5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
iTCO_wdt 16384 0
cfg80211 1142784 3 iwlmvm,iwlwifi,mac80211
snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm
processor_thermal_rapl 20480 1 processor_thermal_device
intel_pmc_bxt 16384 1 iTCO_wdt
mei_me 53248 1
drm_kms_helper 208896 2 drm_display_helper,i915
snd 126976 24 snd_seq,snd_seq_device,snd_hwdep,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
intel_rapl_common 32768 2 intel_rapl_msr,processor_thermal_rapl
iTCO_vendor_support 16384 1 iTCO_wdt
ecdh_generic 16384 2 bluetooth
int3400_thermal 20480 0
joydev 28672 0
ecc 40960 1 ecdh_generic
intel_uncore 217088 0
mei 159744 3 mei_hdcp,mei_me
soundcore 16384 1 snd
watchdog 45056 1 iTCO_wdt
intel_pmc_core 53248 0
i2c_algo_bit 16384 1 i915
intel_vsec 20480 0
serial_multi_instantiate 20480 0
mxm_wmi 16384 0
wmi_bmof 16384 0
rfkill 36864 5 iwlmvm,bluetooth,cfg80211
int340x_thermal_zone 20480 1 processor_thermal_device
acpi_thermal_rel 16384 1 int3400_thermal
pcspkr 16384 0
acpi_pad 184320 0
acpi_tad 20480 0
button 24576 0
bfq 94208 10
evdev 28672 12
sg 40960 0
nvidia 54517760 92 nvidia_uvm,nvidia_modeset
jitterentropy_rng 16384 1
drbg 45056 1
ansi_cprng 16384 0
seqiv 16384 12
esp4 24576 12
xfrm_user 53248 0
xfrm_algo 16384 2 esp4,xfrm_user
i2c_dev 24576 0
nfsd 708608 5
nct6683 28672 0
parport_pc 40960 0
auth_rpcgss 159744 2 nfsd,rpcsec_gss_krb5
ppdev 24576 0
nfs_acl 16384 1 nfsd
lockd 131072 2 nfsd,nfs
lp 20480 0
grace 16384 2 nfsd,lockd
parport 73728 3 parport_pc,lp,ppdev
drm 614400 8 drm_kms_helper,drm_display_helper,nvidia,drm_buddy,i915,ttm
loop 32768 0
fuse 176128 2 cuse
efi_pstore 16384 0
configfs 57344 1
sunrpc 692224 26 nfsd,nfsv4,auth_rpcgss,lockd,rpcsec_gss_krb5,nfs_acl,nfs
ip_tables 36864 0
x_tables 61440 1 ip_tables
autofs4 53248 10
efivarfs 24576 1
raid10 65536 0
raid1 53248 0
multipath 20480 0
linear 20480 0
ohci_hcd 61440 0
uhci_hcd 57344 0
ehci_hcd 102400 0
xfs 1945600 0
vfat 24576 1
fat 90112 1 vfat
btrfs 1789952 5
blake2b_generic 20480 0
ext4 983040 2
crc16 16384 2 bluetooth,ext4
mbcache 16384 1 ext4
jbd2 167936 1 ext4
f2fs 802816 0
crc32_generic 16384 0
lz4hc_compress 24576 1 f2fs
zstd_compress 294912 2 f2fs,btrfs
lz4 16384 56
lz4_compress 24576 2 lz4,f2fs
xts 16384 0
ecb 16384 0
dm_crypt 61440 7
dm_cache_smq 28672 2
dm_cache 73728 3 dm_cache_smq
dm_persistent_data 106496 1 dm_cache
dm_bio_prison 20480 1 dm_cache
dm_bufio 40960 1 dm_persistent_data
raid456 180224 0
async_raid6_recov 24576 1 raid456
async_memcpy 20480 2 raid456,async_raid6_recov
async_pq 20480 2 raid456,async_raid6_recov
async_xor 20480 3 async_pq,raid456,async_raid6_recov
ses 20480 0
async_tx 20480 5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
enclosure 20480 1 ses
xor 24576 2 async_xor,btrfs
scsi_transport_sas 49152 1 ses
raid6_pq 122880 4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c 16384 4 dm_persistent_data,btrfs,xfs,raid456
crc32c_generic 16384 0
e1000e 315392 0
raid0 24576 1
md_mod 192512 7 raid1,raid10,raid0,linear,raid456,multipath
hid_generic 16384 0
uas 32768 5
usbhid 65536 1 wacom
usb_storage 81920 2 uas
hid 159744 3 wacom,usbhid,hid_generic
dm_mod 184320 50 dm_crypt,dm_cache,dm_bufio
crc32_pclmul 16384 0
crc32c_intel 24576 9
ghash_clmulni_intel 16384 0
sha512_ssse3 49152 1
sha512_generic 16384 1 sha512_ssse3
sd_mod 65536 9
sha256_ssse3 32768 1
sha1_ssse3 32768 0
nvme 53248 2
xhci_pci 24576 0
nvme_core 163840 11 nvme,nvme_fabrics
xhci_hcd 315392 1 xhci_pci
t10_pi 16384 2 sd_mod,nvme_core
ahci 49152 1
crc64_rocksoft_generic 16384 1
libahci 49152 1 ahci
megaraid_sas 180224 1
crc64_rocksoft 20480 1 t10_pi
crc_t10dif 20480 1 t10_pi
libata 401408 2 libahci,ahci
aesni_intel 393216 42
usbcore 348160 12 xhci_hcd,ohci_hcd,snd_usb_audio,usbhid,snd_usbmidi_lib,usb_storage,uvcvideo,ehci_hcd,btusb,xhci_pci,uas,uhci_hcd
crct10dif_generic 16384 0
scsi_mod 286720 8 ses,scsi_transport_sas,sd_mod,usb_storage,uas,megaraid_sas,libata,sg
crypto_simd 16384 1 aesni_intel
cryptd 28672 22 crypto_simd,ghash_clmulni_intel
igc 163840 0
crct10dif_pclmul 16384 1
i2c_i801 36864 0
crc64 20480 2 crc64_rocksoft,crc64_rocksoft_generic
i2c_smbus 20480 1 i2c_i801
usb_common 16384 6 xhci_hcd,ohci_hcd,usbcore,uvcvideo,ehci_hcd,uhci_hcd
scsi_common 16384 5 scsi_mod,usb_storage,uas,libata,sg
crct10dif_common 16384 3 crct10dif_generic,crc_t10dif,crct10dif_pclmul
fan 20480 0
video 65536 2 i915,nvidia_modeset
wmi 36864 3 video,wmi_bmof,mxm_wmi
pinctrl_alderlake 36864 0
-- /etc/initramfs-tools/modules
e1000e
raid456
dm-cache-smq
dm-crypt
xts
lz4
f2fs
ext3
ext4
btrfs
vfat
xfs
usb_common
usbcore
xhci_hcd
uhci_hcd
ehci_hcd
ohci_hcd
usbkbd
hid
hid_generic
usbhid
hid_generic
megaraid_sas
-- /etc/kernel-img.conf
# Kernel Image management overrides
# See kernel-img.cnf(5) for details
do_symlinks = No
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=auto
KEYMAP=n
COMPRESS=zstd
DEVICE=
NFSROOT=auto
RUNSIZE=10%
FSTYPE=auto
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- /etc/crypttab
# <target name> <source device> <key file> <options>
cryptroot /dev/vg_cerebro/root /boot initramfs,luks,keyscript=decrypt_keyctl,discard
cryptrootext /dev/disk/by-partlabel/EXTRA_SLASH_FOR_GGUF_DOWNLOADS /boot initramfs,luks,keyscript=decrypt_keyctl,discard
cryptlocalvol /dev/vg_cerebro/localvol /boot initramfs,luks,keyscript=decrypt_keyctl
#cryptswap /dev/vg_cerebro/swap /dev/urandom swap,cipher=aes-xts-plain64,size=256
# cryptlocalvolx /dev/vg_cerebro/localvolx /boot initramfs,luks,keyscript=decrypt_keyctl
#cryptoldroot /dev/vg_oldroot/oldroot /boot initramfs,luks,keyscript=decrypt_keyctl
-- /proc/mdstat
Personalities : [raid0] [raid6] [raid5] [raid4] [linear] [multipath] [raid1] [raid10]
md5 : active raid0 sdc1[4] sdd1[0] sdg1[2] sdf1[1]
15627554816 blocks super 1.2 1024k chunks
unused devices: <none>
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
schmorp-dm-modules
schmorp-dropbearkeys
schmorp-e2fsck
/usr/share/initramfs-tools/hooks:
btrfs
cryptgnupg
cryptgnupg-sc
cryptkeyctl
cryptopensc
cryptpassdev
cryptroot
cryptroot-unlock
dmsetup
dropbear
fsck
fuse
intel_microcode
iscsi
keymap
klibc-utils
kmod
lvm2
mdadm
nbd
nbd-client
ntfs_3g
reiserfsprogs
resume
thermal
thin-provisioning-tools
udev
xfs
zz-busybox
zz_nvidia-blacklists-nouveau
-- System Information:
Debian Release: 12.5
APT prefers stable-updates
APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32
Kernel: Linux 6.1.0-21-amd64 (SMP w/28 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.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 initramfs-tools depends on:
ii initramfs-tools-core 0.142
ii linux-base 4.9
initramfs-tools recommends no packages.
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.11-6
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list