From a2d8a0be620d25ac35593c218f3b1b942655cdde Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 13 Aug 2012 20:38:25 +0300 Subject: [PATCH 1/4] mkmodpack: kmod-9 de facto requires modules.dep.bin Here's the culprit: open("/lib/modules/3.4.7-std-def-alt1/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/modules/3.4.7-std-def-alt1/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/modules/3.4.7-std-def-alt1/modules.alias.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) exit_group(1) = ? +++ exited with 1 +++ [root@builder .in]# ls -l /lib/modules/3.4.7-std-def-alt1/modules.dep* -rw-r--r-- 1 root root 370664 Jul 29 18:20 /lib/modules/3.4.7-std-def-alt1/modules.dep Here's the typical result for mkimage: ERROR: could not open directory /tmp/mkmodpack.sWzMWshm9Z/lib/modules/3.4.7-std-def-alt1: No such file or directory FATAL: could not search modules: No such file or directory mkmodpack: Failed to create modules dependencies. --- mkmodpack | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkmodpack b/mkmodpack index f6968a6..79ed341 100644 --- a/mkmodpack +++ b/mkmodpack @@ -198,6 +198,13 @@ done [ -n "$KERNEL" ] || KERNEL="$uname_r" [ -d "/lib/modules/$KERNEL" ] || Fatal "Directory /lib/modules/$KERNEL does not exists." +# modprobe from kmod-9 *requires* modules.dep.bin; +# kernel-image-std-def doesn't contain it as of 3.4.7-alt1 (ALT #27640) +if [ ! -f /lib/modules/$KERNEL/modules.dep.bin ] && [ "`modprobe -V`" = "kmod version 9" ]; then + depmod -a -F "/boot/System.map-$KERNEL" "$KERNEL" || + Fatal "Failed to create modules dependencies (full)." +fi + #--------------------------------------------------------------- FIRMWARE_DIRS="$FIRMWARE_DIRS /lib/firmware/$KERNEL" MODULES= From b0b284d83a014fb2ae6214d13d456ad9024228fe Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 13 Aug 2012 20:39:03 +0300 Subject: [PATCH 2/4] 20101130-alt19 - modprobe suddenly wants modules.dep.bin to exist --- propagator.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/propagator.spec b/propagator.spec index 2191f80..c394b41 100644 --- a/propagator.spec +++ b/propagator.spec @@ -3,7 +3,7 @@ Name: propagator Version: 20101130 -Release: alt18 +Release: alt19 Summary: 'Early userspace' set of binaries License: GPL @@ -45,6 +45,9 @@ make \ %_libdir/%name %changelog +* Mon Aug 13 2012 Michael Shigorin 20101130-alt19 +- modprobe suddenly wants modules.dep.bin to exist + * Fri Aug 10 2012 Anton V. Boyarshinov 20101130-alt18 - modprobe --list changed to find From fef70f8de8e90a6e5fc354a2e0d9282c5c7b4709 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 15 Oct 2012 15:06:07 +0300 Subject: [PATCH 3/4] mkmodpack: kmod-10 still wants binary deplist Hope upstream will finally do something about that -- either document the behaviour or fix it. --- mkmodpack | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mkmodpack b/mkmodpack index 79ed341..f6f2399 100644 --- a/mkmodpack +++ b/mkmodpack @@ -198,9 +198,8 @@ done [ -n "$KERNEL" ] || KERNEL="$uname_r" [ -d "/lib/modules/$KERNEL" ] || Fatal "Directory /lib/modules/$KERNEL does not exists." -# modprobe from kmod-9 *requires* modules.dep.bin; -# kernel-image-std-def doesn't contain it as of 3.4.7-alt1 (ALT #27640) -if [ ! -f /lib/modules/$KERNEL/modules.dep.bin ] && [ "`modprobe -V`" = "kmod version 9" ]; then +# modprobe from kmod-9+ *requires* modules.dep.bin (ALT #27640) +if [ ! -f /lib/modules/$KERNEL/modules.dep.bin ]; then depmod -a -F "/boot/System.map-$KERNEL" "$KERNEL" || Fatal "Failed to create modules dependencies (full)." fi From 9f1e60314f1e176f58782de5c718e31ea80cd141 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 15 Oct 2012 15:07:15 +0300 Subject: [PATCH 4/4] 20101130-alt20 - kmod-10 still does, remade the workaround as a longer term one --- propagator.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/propagator.spec b/propagator.spec index c394b41..58059d5 100644 --- a/propagator.spec +++ b/propagator.spec @@ -3,7 +3,7 @@ Name: propagator Version: 20101130 -Release: alt19 +Release: alt20 Summary: 'Early userspace' set of binaries License: GPL @@ -45,6 +45,9 @@ make \ %_libdir/%name %changelog +* Mon Oct 15 2012 Michael Shigorin 20101130-alt20 +- kmod-10 still does, remade the workaround as a longer term one + * Mon Aug 13 2012 Michael Shigorin 20101130-alt19 - modprobe suddenly wants modules.dep.bin to exist