modules-load: downgrade error on ENODEV/ENOENT
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 Oct 2017 14:21:06 +0000 (16:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 Oct 2017 20:29:45 +0000 (22:29 +0200)
commit6cbb0af16e41f8ed665b07f75738c24eea4de8a5
treeff6ec79a9dc6d3788d50f7746ee083987b387af2
parent2c3f0bb207f89f0347a4a84a8cde57e979f33896
modules-load: downgrade error on ENODEV/ENOENT

Some kernel modules may be loaded if the hardware does not exist
(usually when the hardware is hot-pluggable), while others fail with
ENODEV. Let's make those two cases more similar, and simply log
modules which cannot be loaded because of missing hardware without
failing systemd-modules-load.service.

For modules which don't exist, let's warn, but not fail the whole
service. I think a warning is appropriate because it's likely that
a typo was made.
src/modules-load/modules-load.c