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

View File

@ -15,4 +15,5 @@ install() {
inst /usr/bin/sed
inst_hook pre-pivot 01 "$moddir/adduser.sh"
inst_hook pre-pivot 02 "$moddir/display-manager-autologin.sh"
inst_hook pre-pivot 03 "$moddir/copy-kmods.sh"
}