Use this sed line instead: sed -i -E 's/^(\s*initrd\s+)(\S*\/)(.*)$/\1\2acpi_fixed.cpio \2\3/g' /boot/grub/grub.cfg.new
Use this sed line instead: initrd\ s+)(\S* \/)(.*) $/\1\2acpi_ fixed.cpio \2\3/g' /boot/grub/ grub.cfg. new
sed -i -E 's/^(\s*