post-install.linux (462B)
1 #!/bin/sh 2 # linux post-install: refresh module maps for the RUNNING kernel. 3 # On live targets uname matches and this regenerates; at assembly time 4 # (userns, host uname) /lib/modules/<running> is absent and this is a 5 # no-op - the build-time maps generated with explicit -b/-version ship in 6 # the package and are always present. Never bare-depmod unconditionally: 7 # uname lies in containers. 8 ver=$(uname -r) 9 if [ -d "/lib/modules/${ver}" ]; then exec depmod; fi