Public bug reported:
Title: dracut 110-11: 50-parse-copymods.sh warns about deprecated
'copymods' on every boot
Package: dracut-core 110-11 (dracut, dracut-core, dracut-install,
dracut-network)
Kernel: 7.0.0-29-generic
The compatibility hook
/var/lib/dracut/hooks/cmdline/50-parse-copymods.sh
prints this warning during initramfs on EVERY boot:
"Kernel command line option 'copymods' is deprecated, use
'rd.driver.export' instead."
even when 'copymods' was never passed on the kernel command line.
/proc/cmdline confirms neither 'copymods' nor 'rd.driver.export' is present:
BOOT_IMAGE=/vmlinuz-7.0.0-29-generic root=/dev/mapper/ubuntu--vg-
ubuntu--lv ro quiet splash fbcon=rotate:3 crashkernel=...
Cause: the warn() call is unconditional. The hook only skips when
rd.driver.export is already set (early return). Otherwise it reads
copymods (which may be empty), then always warns and always appends
rd.driver.export. Since copymods is on by default and rd.driver.export
is off by default, the shim legitimately needs to run to preserve
behaviour — but the deprecation warning should only fire when copymods
was actually specified.
Hook contents:
#!/bin/sh
command -v getarg > /dev/null || . /lib/dracut-lib.sh
if getarg rd.driver.export > /dev/null; then
return 0
fi
copymods=$(getarg copymods) || true
warn "Kernel command line option 'copymods' is deprecated, use
'rd.driver.export' instead."
echo "rd.driver.export${copymods:+=$copymods}" >>
/etc/cmdline.d/50-copymods.conf
Suggested fix: guard the warning so it only fires when copymods was
explicitly given, e.g.
[ -n "$copymods" ] && warn "Kernel command line option 'copymods' is
deprecated, use 'rd.driver.export' instead."
DistroRelease: Ubuntu 26.04
DracutModulesPackages:
bcache-tools 1.0.8-5ubuntu1
cloud-initramfs-copymods 0.58ubuntu
cloud-initramfs-dyn-netconf 0.58ubuntu
dracut-core 110-11
dracut-network 110-11
overlayroot 0.58ubuntu
InstallationDate: Installed on 2026-08-01 (14 days ago)
InstallationMedia: Ubuntu-Server 26.04 "Resolute Raccoon" - Release amd64
(20260420.1)
Package: dracut-core 110-11
PackageArchitecture: amd64
ProcCpuinfoMinimal:
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
stepping : 10
microcode : 0xfa
cpu MHz : 1600.005
cache size : 9216 KB
physical id : 0
siblings : 6
core id : 5
cpu cores : 6
apicid : 10
initial apicid : 10
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb
rdtscp lm constant_tsc art arch_perfmon pebts rep_good nopl xtopology
nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx sest tm2
ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt
tsc_deadline_timer aesave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault
epb pti ssbd ibrs ibpb stibp tpr_shadowexpriority ept vpid ept_ad fsgsbase
tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smalflushopt
intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp
hwp_act_window hwp_evnmi md_clear flush_l1d arch_capabilities
vmx flags : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb
flexpriority tsc_offset r mtf vapic ept vpid unrestricted_guest ple shadow_vmcs
pml ept_violation_ve ept_mode_based_exec
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds
swapgs taa itlb_muhit srbds mmio_stale_data retbleed gds spectre_v2_user vmscape
bogomips : 6000.00
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
ProcVersionSignature: Ubuntu 7.0.0-29.29-generic 7.0.12
SourcePackage: dracut
Tags: resolute
Uname: Linux 7.0.0-29-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: dracut-core 110-11
ProcVersionSignature: Ubuntu 7.0.0-29.29-generic 7.0.12
Uname: Linux 7.0.0-29-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Aug 15 07:26:43 2026
InstallationDate: Installed on 2026-08-01 (14 days ago)
InstallationMedia: Ubuntu-Server 26.04 "Resolute Raccoon" - Release amd64
(20260420.1)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
SourcePackage: dracut
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: dracut (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163566
Title:
dracut copymods warning during boot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2163566/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs