summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-11-30 15:06:57 +0100
committerDaniel Baumann <daniel@debian.org>2012-11-30 15:06:57 +0100
commit2df809705d670993096e841173f565323d93da8a (patch)
treefbe16f8aeb4a4ed91f5f80b4b95eb6591a49cd3c
parent8affdd79d0c1e316e5ab3dc87df3caaea4b202ce (diff)
downloadvyos-live-build-2df809705d670993096e841173f565323d93da8a.tar.gz
vyos-live-build-2df809705d670993096e841173f565323d93da8a.zip
Using hash rather than pipe as sed separator for writing boot parameters into bootloader configurations (Closes: #694723).
-rwxr-xr-xscripts/build/binary_grub2
-rwxr-xr-xscripts/build/binary_grub22
-rwxr-xr-xscripts/build/binary_silo4
-rwxr-xr-xscripts/build/binary_syslinux14
-rwxr-xr-xscripts/build/binary_yaboot2
5 files changed, 12 insertions, 12 deletions
diff --git a/scripts/build/binary_grub b/scripts/build/binary_grub
index af637229c..cef3da768 100755
--- a/scripts/build/binary_grub
+++ b/scripts/build/binary_grub
@@ -264,7 +264,7 @@ fi
cp ${FILES} binary/boot/grub
sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" -e "s|LINUX_INSTALL|${LINUX_INSTALL}|" -e "s|MEMTEST|${MEMTEST}|" binary/boot/grub/menu.lst
-sed -i -e "s|LB_BOOTAPPEND_INSTALL|${LB_BOOTAPPEND_INSTALL}|" -e "s|LB_BOOTAPPEND_LIVE|${LB_BOOTAPPEND_LIVE}|" binary/boot/grub/menu.lst
+sed -i -e "s#LB_BOOTAPPEND_INSTALL#${LB_BOOTAPPEND_INSTALL}#" -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" binary/boot/grub/menu.lst
sed -i -e 's|\ $||g' binary/boot/grub/menu.lst
diff --git a/scripts/build/binary_grub2 b/scripts/build/binary_grub2
index ce1d15359..1b77523d1 100755
--- a/scripts/build/binary_grub2
+++ b/scripts/build/binary_grub2
@@ -237,7 +237,7 @@ fi
cp ${FILES} binary/boot/grub
sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" -e "s|LINUX_INSTALL|${LINUX_INSTALL}|" -e "s|MEMTEST|${MEMTEST}|" binary/boot/grub/grub.cfg
-sed -i -e "s|LB_BOOTAPPEND_INSTALL|${LB_BOOTAPPEND_INSTALL}|" -e "s|LB_BOOTAPPEND_LIVE|${LB_BOOTAPPEND_LIVE}|" binary/boot/grub/grub.cfg
+sed -i -e "s#LB_BOOTAPPEND_INSTALL#${LB_BOOTAPPEND_INSTALL}#" -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" binary/boot/grub/grub.cfg
sed -i -e 's|\ $||g' binary/boot/grub/grub.cfg
diff --git a/scripts/build/binary_silo b/scripts/build/binary_silo
index b1ec175e4..8e833d1cc 100755
--- a/scripts/build/binary_silo
+++ b/scripts/build/binary_silo
@@ -219,8 +219,8 @@ case "${LB_BINARY_IMAGES}" in
sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" \
-e "s|LINUX_INSTALL|${LINUX_INSTALL}|" \
binary/boot/silo.conf
- sed -i -e "s|LB_BOOTAPPEND_INSTALL|${LB_BOOTAPPEND_INSTALL}|" \
- -e "s|LB_BOOTAPPEND_LIVE|${LB_BOOTAPPEND_LIVE}|" \
+ sed -i -e "s#LB_BOOTAPPEND_INSTALL#${LB_BOOTAPPEND_INSTALL}#" \
+ -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" \
binary/boot/silo.conf
sed -i -e "s|LB_DATE|$(date +%Y%m%d)|" \
-e "s|LB_VERSION|${VERSION}|" \
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index 5836b0a26..7f1bf86f7 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -221,8 +221,8 @@ then
sed -e "s|@FLAVOUR@|${LB_LINUX_FLAVOURS}|g" \
-e "s|@LINUX@|/live/vmlinuz|g" \
-e "s|@INITRD@|/live/initrd.img|g" \
- -e "s|@APPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
- -e "s|@APPEND_LIVE_FAILSAFE@|${LB_BOOTAPPEND_LIVE_FAILSAFE}|g" \
+ -e "s#@APPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
+ -e "s#@APPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \
"${_TARGET}/live.cfg.in" >> "${_TARGET}/live.cfg"
rm -f "${_TARGET}/live.cfg.in"
@@ -249,8 +249,8 @@ then
sed -i -e "s|@FLAVOUR@|${_FLAVOUR}|g" \
-e "s|@LINUX@|/live/vmlinuz${_NUMBER}|g" \
-e "s|@INITRD@|/live/initrd${_NUMBER}.img|g" \
- -e "s|@APPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
- -e "s|@APPEND_LIVE_FAILSAFE@|${LB_BOOTAPPEND_LIVE_FAILSAFE}|g" \
+ -e "s#@APPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
+ -e "s#@APPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \
"${_TARGET}/live.cfg"
done
@@ -259,14 +259,14 @@ then
esac
elif [ -e "${_TARGET}/live.cfg" ]
then
- sed -i -e "s|@LB_BOOTAPPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
- -e "s|@LB_BOOTAPPEND_LIVE_FAILSAFE@|${LB_BOOTAPPEND_LIVE_FAILSAFE}|g" \
+ sed -i -e "s#@LB_BOOTAPPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
+ -e "s#@LB_BOOTAPPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \
${_TARGET}/live.cfg
fi
if [ -e ${_TARGET}/install.cfg ]
then
- sed -i -e "s|@LB_BOOTAPPEND_INSTALL@|${LB_BOOTAPPEND_INSTALL}|g" \
+ sed -i -e "s#@LB_BOOTAPPEND_INSTALL@#${LB_BOOTAPPEND_INSTALL}#g" \
${_TARGET}/install.cfg
fi
diff --git a/scripts/build/binary_yaboot b/scripts/build/binary_yaboot
index 4838cf351..8fc5a64dd 100755
--- a/scripts/build/binary_yaboot
+++ b/scripts/build/binary_yaboot
@@ -269,7 +269,7 @@ case "${LB_BINARY_IMAGES}" in
# Configure yaboot templates
sed -i -e "s|LINUX_LIVE|${LINUX_LIVE}|" -e "s|LINUX_INSTALL|${LINUX_INSTALL}|" binary/yaboot/yaboot.conf
- sed -i -e "s|LB_BOOTAPPEND_INSTALL|${LB_BOOTAPPEND_INSTALL}|" -e "s|LB_BOOTAPPEND_LIVE|${LB_BOOTAPPEND_LIVE}|" binary/yaboot/yaboot.conf
+ sed -i -e "s#LB_BOOTAPPEND_INSTALL#${LB_BOOTAPPEND_INSTALL}#" -e "s#LB_BOOTAPPEND_LIVE#${LB_BOOTAPPEND_LIVE}#" binary/yaboot/yaboot.conf
sed -i -e "s|LB_DATE|$(date +%Y%m%d)|" -e "s|LB_VERSION|${VERSION}|" binary/yaboot/boot.msg
;;
esac