Permalink
Browse files

Use ";" as separator character when adjusting DEFAULT_BOOTOPTIONS via…

… sed

Otherwise customizations like tz=Europe/Vienna will break, as
the "/" inside it will be interpreted by sed(1).
  • Loading branch information...
mika committed Feb 27, 2012
1 parent e06b6cf commit 6eb1b1e874476af08d8dc8deb21e3f522e6973d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 grml-live
View
@@ -956,7 +956,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
sed -i "s/%SHORT_NAME%/$SHORT_NAME/g" "${file}"
sed -i "s/%VERSION%/$VERSION/g" "${file}"
- [ -n "$DEFAULT_BOOTOPTIONS" ] && sed -i "s/ boot=live/ boot=live $DEFAULT_BOOTOPTIONS/" "${file}"
+ [ -n "$DEFAULT_BOOTOPTIONS" ] && sed -i "s; boot=live; boot=live $DEFAULT_BOOTOPTIONS;" "${file}"
if [ -n "$NO_BOOTID" ] ; then
sed -i "s/ bootid=%BOOTID%//g" "${file}" # drop bootid bootoption

0 comments on commit 6eb1b1e

Please sign in to comment.