Question 170
At Cedar Logistics, a manually copied kernel module fails to load because it depends on another driver. The team is preparing a reversible change and needs a test that distinguishes the suspected fault from unrelated symptoms. A colleague suggests: “Use insmod for the target object and assume its dependencies load automatically.” Which flaw makes that recommendation inappropriate?
Explanation
Correct Answer
Inspect modinfo dependencies and use modprobe with an updated depmod index rather than loading the object blindly. Verify that the dependency chain is resolved and the target driver appears in lsmod without unresolved-symbol errors.
Incorrect Answers
“Assume editing the file retroactively updates every existing device immediately.” is a different mistake. The current issue is that insmod does not resolve dependencies in the same manner as modprobe.
“Guess SUBSYSTEM and ATTR values from the old device's friendly label.” is a different mistake. The current issue is that insmod does not resolve dependencies in the same manner as modprobe.
“Force-remove a busy module on a production host without checking active consumers.” is a different mistake. The current issue is that insmod does not resolve dependencies in the same manner as modprobe.