~linaro-maintainers/live-build/linaro-live-build-3

« back to all changes in this revision

Viewing changes to scripts/build/lb_binary_iso

  • Committer: Daniel Baumann
  • Date: 2011-03-09 18:19:23 UTC
  • Revision ID: git-v1:c5c3f6133a0fb62ba9c2c3b839e6ea5774f9c76a
Adding debian version 3.0~a1-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
3
## live-build(7) - System Build Scripts
4
 
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
 
4
## Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
5
5
##
6
6
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
7
## This is free software, and you are welcome to redistribute it
156
156
if [ "${LB_BOOTLOADER}" = "grub2" ]
157
157
then
158
158
 
159
 
        case "${LB_DISTRIBUTION}" in
160
 
                lenny|lucid)
161
 
                        GRUB_MKIMAGE_OPTIONS=""
162
 
                        ;;
163
 
 
164
 
                *)
165
 
                        # grub >= 1.98+20100527 requires -O, see #584415
166
 
                        GRUB_MKIMAGE_OPTIONS="-O i386-pc"
167
 
                        ;;
168
 
 
169
 
        esac
170
 
 
171
159
cat > binary.sh << EOF
172
160
#!/bin/sh
173
161
 
175
163
 
176
164
# build core.img
177
165
core_img=\$(mktemp)
178
 
grub-mkimage -d \${input_dir} -o \${core_img} ${GRUB_MKIMAGE_OPTIONS} biosdisk iso9660
 
166
grub-mkimage -d \${input_dir} -o \${core_img} biosdisk iso9660
179
167
 
180
168
# build grub_eltorito image
181
169
cat \${input_dir}/cdboot.img \${core_img} > binary/boot/grub/grub_eltorito