diff --git a/dracut/copy-kmods.sh b/dracut/copy-kmods.sh index 9877fd4..a6b4b14 100644 --- a/dracut/copy-kmods.sh +++ b/dracut/copy-kmods.sh @@ -7,3 +7,6 @@ KVER=$(uname -r) mkdir -p $NEWROOT/usr/lib/modules cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/ 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