copy-initramfs.sh 274 B

1234567
  1. #!/bin/sh
  2. # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
  3. # ex: ts=8 sw=4 sts=4 et filetype=sh
  4. # Copy the initramfs back to the new rootfs for proper shutdown.
  5. KVER=$(uname -r)
  6. cp /run/initramfs/live/boot/initrd $NEWROOT/boot/initramfs-${KVER}.img