Comment 86 for bug 1861610

Revision history for this message
Ferenc Szabo (ferenc-szabo) wrote :

@Filip: I don't know. The comment box wraps the lines to 75 character length. Therefore the sed line has broken into two lines. If you copied the raw text from the comment into the file it wont work.

Use this version instead: (note the backslash at the end of line)

#!/bin/sh
sed -i -E 's/^(\s*initrd\s+)(\S*\/)(.*)$/\1\2acpi_fixed.cpio \2\3/g' \
    /boot/grub/grub.cfg.new