While preparing a Debian 12 PXE-boot image, you notice that the cp210x USB-serial driver is loaded automatically by udev during early boot even after you remove it with modprobe -r. You must stop the driver from loading automatically at boot or on hot-plug but still be able to insert it manually later for occasional troubleshooting. Which of the following solutions meets the requirement and persists across kernel updates?
Place "blacklist cp210x" in /etc/modprobe.d/blacklist-cp210x.conf and run update-initramfs -u to regenerate the image.
Append "module_blacklist=cp210x" to the GRUB kernel command line and run update-grub, leaving the initramfs unchanged.
Create /etc/modprobe.d/disable-cp210x.conf containing "install cp210x /bin/false" and rebuild the initramfs.
Add "cp210x" to /etc/modules and run update-initramfs -u so the driver is always present.
Putting the line blacklist cp210x in a small file such as /etc/modprobe.d/blacklist-cp210x.conf tells modprobe to ignore all the driver's internal aliases, so udev and the initramfs will no longer pull the module in automatically. The driver can still be inserted explicitly with modprobe cp210x because the blacklist directive affects only implicit (alias-based) loading. Re-creating the initramfs with update-initramfs -u ensures the setting is honored during the very early stages of boot.
Adding the module name to /etc/modules does the opposite-it forces the driver to load.
Using an install cp210x /bin/false rule or adding module_blacklist=cp210x on the kernel command line prevents any insertion, so modprobe cp210x would fail.
Editing GRUB alone without updating the initramfs does not satisfy the "manual load still possible" requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of `modprobe.d` and how does blacklisting work?
Open an interactive chat with Bash
Why is updating the initramfs necessary after making changes to module configuration?
Open an interactive chat with Bash
How does the solution differ from using `install cp210x /bin/false`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access