Codebase list kernel-wedge / 839e3fa
copy-modules: Add postinst scripts in Linux modules packages to run depmod On Linux, modprobe and udevd rely on having valid module indexes (modules.alias, modules.dep, etc.) generated by depmod. Currently d-i usually (but possibly not always) runs depmod after installing a Linux modules package. As a step away from this, add postinst scripts to all modules packages that run depmod if necessary. Closes: #369256 Ben Hutchings 3 years ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
155155 exit $ret
156156 fi
157157 cd $home
158
159 if [ "$os" = linux ]; then
160 cat >"debian/$i-$version-di.postinst" <<EOF
161 #!/bin/sh -e
162 depmod $installedname
163 EOF
164 fi
158165 fi
159166 done
160167 exit $code
22 * build-arch, copy-modules: Replace deprecated tempfile command with mktemp
33 * copy-modules: Fail if building from installed Linux package without
44 modules.dep
5 * copy-modules: Add postinst scripts in Linux modules packages to run depmod
6 (Closes: #369256)
57
68 -- Ben Hutchings <benh@debian.org> Sat, 25 Jul 2020 03:23:18 +0100
79