Add another script for dracut to copy kmods from initramfs to the new rootfs.

This commit is contained in:
Juan RP
2013-05-19 12:36:21 +02:00
parent cb1b9f3ca9
commit 7601096f1a
2 changed files with 8 additions and 0 deletions

7
dracut/copy-kmods.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
# Copy all modules from initramfs to new rootfs.
mkdir -p $NEWROOT/usr/lib/modules
cp -a /usr/lib/modules/* $NEWROOT/usr/lib/modules