diff options
author | Juan RP <xtraeme@gmail.com> | 2013-05-20 11:12:54 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-05-20 11:12:54 +0200 |
commit | 2a5939bce4bc8772deeebc045f3bd9b2fe1a8631 (patch) | |
tree | 323fdf6ebbe96ff3411cdfe2b611344a5abbbb6a /dracut | |
parent | 2517265510ec66f9c16fe3e9e2988a404d32666d (diff) | |
download | hrmpf-2a5939bce4bc8772deeebc045f3bd9b2fe1a8631.tar.gz hrmpf-2a5939bce4bc8772deeebc045f3bd9b2fe1a8631.tar.xz hrmpf-2a5939bce4bc8772deeebc045f3bd9b2fe1a8631.zip |
dracut/copy-kmods.sh: after copying kmod re-run depmod.
Diffstat (limited to 'dracut')
-rw-r--r-- | dracut/copy-kmods.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dracut/copy-kmods.sh b/dracut/copy-kmods.sh index a76031c..9877fd4 100644 --- a/dracut/copy-kmods.sh +++ b/dracut/copy-kmods.sh @@ -3,5 +3,7 @@ # ex: ts=8 sw=4 sts=4 et filetype=sh # Copy all modules from initramfs to new rootfs. +KVER=$(uname -r) mkdir -p $NEWROOT/usr/lib/modules -cp -a /usr/lib/modules/* $NEWROOT/usr/lib/modules +cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/ +depmod -b $NEWROOT/usr |