diff options
author | Daniel Baumann <daniel@debian.org> | 2012-05-23 07:17:15 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-05-23 07:22:51 +0200 |
commit | 69194996f73fc04924dc3f1274ec8dd1b7c74701 (patch) | |
tree | b38685baef71dcd356b43129bb39a98d586fe775 /scripts | |
parent | f759856a789fe52f66c5606280563b1c58d9c559 (diff) | |
download | vyos-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')
-rwxr-xr-x | scripts/build/lb_binary_checksums | 1 | ||||
-rwxr-xr-x | scripts/build/lb_binary_iso | 13 | ||||
-rwxr-xr-x | scripts/build/lb_binary_syslinux | 34 |
3 files changed, 44 insertions, 4 deletions
diff --git a/scripts/build/lb_binary_checksums b/scripts/build/lb_binary_checksums index c5c88191c..59fa56c26 100755 --- a/scripts/build/lb_binary_checksums +++ b/scripts/build/lb_binary_checksums @@ -55,6 +55,7 @@ do cd binary find . -type f \ \! -path './isolinux/isolinux.bin' \ + \! -path './boot/boot.bin' \ \! -path './boot/grub/stage2_eltorito' \ \! -path './md5sum.txt' \ \! -path './sha1sum.txt' \ diff --git a/scripts/build/lb_binary_iso b/scripts/build/lb_binary_iso index 1db746395..ce9dbd167 100755 --- a/scripts/build/lb_binary_iso +++ b/scripts/build/lb_binary_iso @@ -127,8 +127,17 @@ case "${LB_BOOTLOADER}" in syslinux) GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table" - GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -r -b isolinux/isolinux.bin -c isolinux/boot.cat" - GENISOIMAGE_EXCLUDE="isolinux/isolinux.bin" + case "${LB_MODE}" in + progress) + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -r -b boot/boot.bin -c boot/boot.cat" + GENISOIMAGE_EXCLUDE="boot/boot.bin" + ;; + + *) + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -r -b isolinux/isolinux.bin -c isolinux/boot.cat" + GENISOIMAGE_EXCLUDE="isolinux/isolinux.bin" + ;; + esac ;; yaboot) 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 |