summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKristian Klausen <klausenbusk@hotmail.com>2016-05-26 21:26:36 +0200
committerKristian Klausen <klausenbusk@hotmail.com>2016-05-26 21:26:36 +0200
commita8cc7084279116870bc0e37e0836ac7e1f5b780a (patch)
treea83c800c98db3ee8744f04d82e5cb09ecc8920a9 /scripts
parentddc6659002b751e3eea0ca42bb22e52279cc4288 (diff)
downloadvyos-live-build-a8cc7084279116870bc0e37e0836ac7e1f5b780a.tar.gz
vyos-live-build-a8cc7084279116870bc0e37e0836ac7e1f5b780a.zip
Correct syslinux/extlinux mbr.bin path (second try)
dash doesn't support parameter expansion it seems. So implemented with "tr" as in binary_syslinus.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_hdd4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd
index 81e4af23a..616fc07d3 100755
--- a/scripts/build/binary_hdd
+++ b/scripts/build/binary_hdd
@@ -186,7 +186,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
if [ "${LB_PRIMARY_BOOTLOADER}" = "syslinux" ]
then
- dd if=chroot/usr/lib/${_BOOTLOADER^^}/mbr.bin of=${FREELO} bs=440 count=1
+ dd if=chroot/usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z])/mbr.bin of=${FREELO} bs=440 count=1
fi
;;
@@ -206,7 +206,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
if [ "${LB_PRIMARY_BOOTLOADER}" = "syslinux" ]
then
- dd if=/usr/lib/${_BOOTLOADER^^}/mbr.bin of=${FREELO} bs=440 count=1
+ dd if=/usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z])/mbr.bin of=${FREELO} bs=440 count=1
fi
;;
esac