dracut/copy-kmods.sh: copy the initramfs to the new rootfs for proper shutdown.

This commit is contained in:
Juan RP 2013-05-20 16:31:47 +02:00
parent 2ce7cd8251
commit c6f15e7299
1 changed files with 3 additions and 0 deletions

View File

@ -7,3 +7,6 @@ KVER=$(uname -r)
mkdir -p $NEWROOT/usr/lib/modules mkdir -p $NEWROOT/usr/lib/modules
cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/ cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/
depmod -b $NEWROOT/usr depmod -b $NEWROOT/usr
# Copy the initramfs back to the new rootfs for proper shutdown.
cp /run/initramfs/live/boot/initrd.lz $NEWROOT/boot/initramfs-${KVER}.img