add 90kernel-modules-loaded to install currently loaded kernel modules

master
Harald Hoyer 2009-03-06 16:31:43 +01:00
parent 743c38d878
commit 06bb5abe9b
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/bin/bash

# install all currently loaded modules in initrd

/sbin/lsmod | while read mod rest; do
instmods "$mod"
done

[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
dracut_install /etc/modprobe.d/*