From ef81fb90f810a771686a8cc0f52cb2b70985357e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 29 Jun 2014 12:36:51 +0200 Subject: dracut/copy-initramfs.sh: only run this with systemd. --- dracut/copy-initramfs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dracut/copy-initramfs.sh') diff --git a/dracut/copy-initramfs.sh b/dracut/copy-initramfs.sh index 055c6a2..ccb2178 100644 --- a/dracut/copy-initramfs.sh +++ b/dracut/copy-initramfs.sh @@ -4,4 +4,6 @@ # Copy the initramfs back to the new rootfs for proper shutdown. KVER=$(uname -r) -cp /run/initramfs/live/boot/initrd $NEWROOT/boot/initramfs-${KVER}.img +if [ -x /usr/bin/systemctl ]; then + cp /run/initramfs/live/boot/initrd $NEWROOT/boot/initramfs-${KVER}.img +fi -- cgit 1.4.1