dracut/copy-initramfs.sh: only run this with systemd.
This commit is contained in:
parent
204277a8a8
commit
ef81fb90f8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user