From c6f15e7299a2780fedd99f11f0ee77a4618aa92f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 20 May 2013 16:31:47 +0200 Subject: [PATCH] dracut/copy-kmods.sh: copy the initramfs to the new rootfs for proper shutdown. --- dracut/copy-kmods.sh | 3 +++ 1 file changed, 3 insertions(+) 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