diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-02-20 20:35:58 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-02-23 14:28:14 -0300 |
commit | 0b7903ed229c1bb2fe93e4253c7dfdeb19f660b2 (patch) | |
tree | 502fde0dd1546884ccf5c5e7743319cdb2692a8d | |
parent | 83ab7056b38ea95541629897a1077651a64a0068 (diff) |
initramfs-uniboot: call depmod if the image lack a dep file
-rw-r--r-- | packages/initrdscripts/files/init.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh index 65fef262b6..221b8f56b9 100644 --- a/packages/initrdscripts/files/init.sh +++ b/packages/initrdscripts/files/init.sh @@ -41,6 +41,10 @@ read_args() { done } +do_depmod() { + [ -e "/lib/modules/$(uname -r)/modules.dep" ] || depmod +} + load_module() { # Cannot redir to $CONSOLE here easily - may not be set yet echo "initramfs: Loading $module module" @@ -68,6 +72,7 @@ fatal() { echo "Starting initramfs boot..." early_setup load_modules '0*' +do_depmod [ -z "$CONSOLE" ] && CONSOLE="/dev/console" |