0

I have a small Debian 10 (buster) booting directly into RAM for some diskless nodes. I would like to remove all kernel modules which are not necessary. Everything but the nfs client does works without any modules (debbootstrap with minimal arch option)

debootstrap --variant=minbase --arch amd64 buster /root/bootimage/ http://ftp.de.debian.org/debian/

But since they are required for the NFS client, they were installed via

apt-get install linux-image-4.19.0-6-amd64

. Now the nfs module is present and everything works. But the package is fucking huge, like 260 MB. This is a big waste for a RAM disks and a lot of the modules are even causing trouble like:

kvm: disabled by bios
ACPI Error: No handler for Region [SYSI] (000000001a5dc195) [IPMI] (20180810/evregion-132)

I just need the NFS client module and the dependencies. How do I clean everything else up? Can I just delete not unneeded files? Do I have to modify some config files, which would try to load files which were deleted? The debian wiki has only an empty section about this topic.

https://wiki.debian.org/ReduceDebian#Remove_unnecessary_kernel_modules

Thank you for your help in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.