Created
June 17, 2013 20:44
-
-
Save opello/5800212 to your computer and use it in GitHub Desktop.
Fix GRUB 2.00 prefix= variables to make it relocatable. Execute at the base of the prefix after it's been copied to the new destination. e.g. rsync -a user@host:dev/install/grub/ ./grub; cd grub; ./fix-prefix.sh; ./bin/grub-install ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for f in $(grep -r '^prefix="' . | cut -d: -f 1); do | |
sed -r -i 's#^prefix=".*#prefix="'$PWD'"#g' $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment