about summary refs log tree commit diff
path: root/dracut/copy-initramfs.sh
diff options
context:
space:
mode:
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