summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2016-12-02 14:57:45 +0100
committerRaphaël Hertzog <hertzog@debian.org>2016-12-02 14:57:45 +0100
commit4204a7435216c94622d06bd19af6c63b65b7a77a (patch)
treed760b7eb826259aba3f2094022df6da985e7b82e /scripts
parentfb0d4e2a18746e817fa3d13f2ccc2f9788c65666 (diff)
downloadvyos-live-build-4204a7435216c94622d06bd19af6c63b65b7a77a.tar.gz
vyos-live-build-4204a7435216c94622d06bd19af6c63b65b7a77a.zip
Drop useless code in binary_grub-efi
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_grub-efi67
1 files changed, 12 insertions, 55 deletions
diff --git a/scripts/build/binary_grub-efi b/scripts/build/binary_grub-efi
index 384135b15..6d158cd4f 100755
--- a/scripts/build/binary_grub-efi
+++ b/scripts/build/binary_grub-efi
@@ -44,26 +44,10 @@ Create_lockfile .lock
Check_architectures amd64 i386
Check_crossarchitectures
-case "${LB_ARCHITECTURES}" in
- amd64)
- _EFI_TYPE=efi64
- ;;
- i386)
- _EFI_TYPE=efi32
- ;;
- *)
- echo "ERROR: can't provide EFI boot support to architecture ${LB_ARCHITECTURES}" >&2
- exit 1
- ;;
-esac
-
-
# Checking depends
case "${LB_BUILD_WITH_CHROOT}" in
true)
_CHROOT_DIR=""
- _SYSLINUX_EFI_DIR="chroot/usr/lib/SYSLINUX.EFI/$_EFI_TYPE"
- _SYSLINUX_COMMON_DIR="chroot/usr/lib/syslinux/modules/$_EFI_TYPE"
Check_package chroot /usr/lib/grub/x86_64-efi/configfile.mod grub-efi-amd64-bin
Check_package chroot /usr/lib/grub/i386-efi/configfile.mod grub-efi-ia32-bin
@@ -112,35 +96,8 @@ case "${LB_BUILD_WITH_CHROOT}" in
;;
esac
-
-
-
-case "${LB_INITRAMFS}" in
- live-boot)
- INITFS="live"
- ;;
-
- *)
- INITFS=""
- ;;
-esac
-
# Setting destination directory
case "${LIVE_IMAGE_TYPE}" in
- iso*|tar)
- case "${LB_INITRAMFS}" in
- live-boot)
- DESTDIR_LIVE="binary/live"
- ;;
-
- *)
- DESTDIR_LIVE="binary/live"
- ;;
- esac
-
- DESTDIR_INSTALL="binary/install"
- ;;
-
hdd*|netboot)
Echo_warning "Bootloader in this image type not yet supported by live-build."
Echo_warning "This would produce a not bootable image, aborting (FIXME)."
@@ -222,21 +179,21 @@ END
case "${LB_BUILD_WITH_CHROOT}" in
true)
- mv binary.sh chroot/
- Chroot chroot "sh binary.sh"
- rm -f chroot/binary.sh
+ mv binary.sh chroot/
+ Chroot chroot "sh binary.sh"
+ rm -f chroot/binary.sh
- # Saving cache
- Save_cache cache/packages.binary
+ # Saving cache
+ Save_cache cache/packages.binary
- # Removing depends
- Remove_package
- ;;
+ # Removing depends
+ Remove_package
+ ;;
- false)
- sh binary.sh
- rm -f binary.sh
- ;;
+ false)
+ sh binary.sh
+ rm -f binary.sh
+ ;;
esac
# Remove unnecessary files