summary refs log tree commit diff
path: root/dracut/copy-initramfs.sh
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2013-05-21 21:35:35 +0200
committerJuan RP <xtraeme@gmail.com>2013-05-21 21:35:35 +0200
commite05ce506e8824aa09809e88bd9104858faf64ce4 (patch)
treeffdeb461c075cba2e1b86a1051237c3d4a7a585d /dracut/copy-initramfs.sh
parent46f0398357b72c14842713e5a3428fcbc097940c (diff)
downloadhrmpf-e05ce506e8824aa09809e88bd9104858faf64ce4.tar.gz
hrmpf-e05ce506e8824aa09809e88bd9104858faf64ce4.tar.xz
hrmpf-e05ce506e8824aa09809e88bd9104858faf64ce4.zip
copy-kmods.sh -> copy-initramfs.sh; do not copy kmods, just the initramfs for shutdown.
Diffstat (limited to 'dracut/copy-initramfs.sh')
-rw-r--r--dracut/copy-initramfs.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/dracut/copy-initramfs.sh b/dracut/copy-initramfs.sh
new file mode 100644
index 0000000..b5c43dc
--- /dev/null
+++ b/dracut/copy-initramfs.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+
+# Copy the initramfs back to the new rootfs for proper shutdown.
+cp /run/initramfs/live/boot/initrd.lz $NEWROOT/boot/initramfs-${KVER}.img