summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_syslinux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-05-23 07:17:15 +0200
committerDaniel Baumann <daniel@debian.org>2012-05-23 07:22:51 +0200
commit69194996f73fc04924dc3f1274ec8dd1b7c74701 (patch)
treeb38685baef71dcd356b43129bb39a98d586fe775 /scripts/build/lb_binary_syslinux
parentf759856a789fe52f66c5606280563b1c58d9c559 (diff)
downloadvyos-live-build-69194996f73fc04924dc3f1274ec8dd1b7c74701.tar.gz
vyos-live-build-69194996f73fc04924dc3f1274ec8dd1b7c74701.zip
Using /boot on live media instead of /isolinux or /syslinux in progress mode.
Diffstat (limited to 'scripts/build/lb_binary_syslinux')
-rwxr-xr-xscripts/build/lb_binary_syslinux34
1 files changed, 32 insertions, 2 deletions
diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux
index 153acf21c..866e790c9 100755
--- a/scripts/build/lb_binary_syslinux
+++ b/scripts/build/lb_binary_syslinux
@@ -51,7 +51,16 @@ Check_crossarchitectures
case "${LB_BINARY_IMAGES}" in
iso*)
_BOOTLOADER="isolinux"
- _TARGET="binary/isolinux"
+
+ case "${LB_MODE}" in
+ progress)
+ _TARGET="binary/boot"
+ ;;
+
+ *)
+ _TARGET="binary/isolinux"
+ ;;
+ esac
;;
net*)
@@ -61,7 +70,16 @@ case "${LB_BINARY_IMAGES}" in
hdd*|*)
_BOOTLOADER="syslinux"
- _TARGET="binary/syslinux"
+
+ case "${LB_MODE}" in
+ progress)
+ _TARGET="binary/boot"
+ ;;
+
+ *)
+ _TARGET="binary/syslinux"
+ ;;
+ esac
;;
esac
@@ -222,6 +240,18 @@ then
${_TARGET}/install.cfg
fi
+case "${LB_MODE}" in
+ progress)
+ for _FILE in "${_TARGET}/isolinux.bin" "${_TARGET}/isolinux.cfg" "${_TARGET}/syslinux.cfg"
+ do
+ if [ -e "${_FILE}" ]
+ then
+ mv "${_FILE}" $(echo ${_FILE} | sed -e 's|.*linux|boot|')
+ fi
+ done
+ ;;
+esac
+
case "${LB_BUILD_WITH_CHROOT}" in
true)
# Saving cache