Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 755692 - sys-fs/udev with -kmod should not install 80-drivers.rules
Summary: sys-fs/udev with -kmod should not install 80-drivers.rules
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-20 10:59 UTC by Ortwin Glueck
Modified: 2020-11-20 18:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ortwin Glueck 2020-11-20 10:59:19 UTC
I build my kernel without modules and module loading disabled. Hence I have no need for kmod and kmod USE flag is disabled. Still sys-fs/udev installs /lib/udev/rules.d/80-drivers.rules which does nothing but call kmod. This causes the following errors on startup:
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:5 Unknown builtin command 'kmod load $env{MODALIAS}', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:6 Unknown builtin command 'kmod load tifm_sd', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:7 Unknown builtin command 'kmod load tifm_ms', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:8 Unknown builtin command 'kmod load ms_block mspro_block', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:9 Unknown builtin command 'kmod load i2o_block', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:10 Unknown builtin command 'kmod load ppdev', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/80-drivers.rules:11 Unknown builtin command 'kmod load sm_ftl', ignoring
[Fri Nov 20 08:33:14 2020] systemd-udevd[977]: /lib/udev/rules.d/90-nm-thunderbolt.rules:8 Unknown builtin command 'kmod load thunderbolt-net', ignoring

The ebuild should not install the file if kmod was disabled.

The file contains this:
# do not edit this file, it will be overwritten on update

ACTION!="add", GOTO="drivers_end"

ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load $env{MODALIAS}"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN{builtin}+="kmod load tifm_sd"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN{builtin}+="kmod load tifm_ms"
SUBSYSTEM=="memstick", RUN{builtin}+="kmod load ms_block mspro_block"
SUBSYSTEM=="i2o", RUN{builtin}+="kmod load i2o_block"
SUBSYSTEM=="module", KERNEL=="parport_pc", RUN{builtin}+="kmod load ppdev"
KERNEL=="mtd*ro", ENV{MTD_FTL}=="smartmedia", RUN{builtin}+="kmod load sm_ftl"

LABEL="drivers_end"


Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2020-11-20 18:43:27 UTC
This will be fixed when systemd v247 is released. I don't see any strong reason to backport it.

https://github.com/systemd/systemd/commit/dd47b25220f69f869679089da5cc848cf9cd0c78