summary refs log tree commit diff
path: root/dracut
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2013-05-20 16:31:47 +0200
committerJuan RP <xtraeme@gmail.com>2013-05-20 16:31:47 +0200
commitc6f15e7299a2780fedd99f11f0ee77a4618aa92f (patch)
tree26432d75e2bdb3a3646ab165cb822db0c1b4f517 /dracut
parent2ce7cd825117109e5924379f9bc2b8f314dda985 (diff)
downloadhrmpf-c6f15e7299a2780fedd99f11f0ee77a4618aa92f.tar.gz
hrmpf-c6f15e7299a2780fedd99f11f0ee77a4618aa92f.tar.xz
hrmpf-c6f15e7299a2780fedd99f11f0ee77a4618aa92f.zip
dracut/copy-kmods.sh: copy the initramfs to the new rootfs for proper shutdown.
Diffstat (limited to 'dracut')
-rw-r--r--dracut/copy-kmods.sh3
1 files changed, 3 insertions, 0 deletions
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