[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Keep Linux modules.builtin file in the initrd



modules.builtin is generated at kernel build time and can't be
regenerated from the installed kernel or modules.  If it's missing
when depmod runs again within the installer, depmod will generate an
empty modules.builtin.bin and issue a warning.  modprobe will also
fail noisily if asked to load a module that is actually built-in.
---
I've pushed this already; hope that's OK.

Ben.

 build/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build/Makefile b/build/Makefile
index 225afb1..6310226 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -424,6 +424,7 @@ ifdef KERNELVERSION
 
 	# These files depmod makes are used by udev.
 	find $(TREE)/lib/modules/ -maxdepth 2 -name 'modules*.bin' \
+		-not -name 'modules.builtin.bin' \
 		-not -type d | while read f; do rm -f $${f%.bin}; done
 
 	# These files are used to build special kernel images for some

-- 
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: