diff options
author | Juan RP <xtraeme@gmail.com> | 2013-05-20 16:31:47 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-05-20 16:31:47 +0200 |
commit | c6f15e7299a2780fedd99f11f0ee77a4618aa92f (patch) | |
tree | 26432d75e2bdb3a3646ab165cb822db0c1b4f517 | |
parent | 2ce7cd825117109e5924379f9bc2b8f314dda985 (diff) | |
download | hrmpf-c6f15e7299a2780fedd99f11f0ee77a4618aa92f.tar.gz hrmpf-c6f15e7299a2780fedd99f11f0ee77a4618aa92f.tar.xz hrmpf-c6f15e7299a2780fedd99f11f0ee77a4618aa92f.zip |
dracut/copy-kmods.sh: copy the initramfs to the new rootfs for proper shutdown.
-rw-r--r-- | dracut/copy-kmods.sh | 3 |
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 |