Debian Codegraph @

tools/boot/buster/boot-x86

raw
1 # This script gets sourced from boot-i386 and boot-amd64.
2 #
3 # Do install stuff for x86, including making bootable CDs
4 # Works with debian-installer
5 #
6 # $1 is the CD number
7 # $2 is the temporary CD build dir
8
9 . $BASEDIR/tools/boot/$DI_CODENAME/common.sh
10 . $BASEDIR/tools/boot/$DI_CODENAME/x86-desktop.sh
11
12 set -e
13 #set -x
14
15 # Workaround for #823881:
16 export MTOOLS_SKIP_CHECK=1
17
18 # Have we been told to use just one boot method? If none listed,
19 # assume all are desired. Order also matters. Possible values are
20 # "BIOS", "EFI" and "BIOS EFI". We'll also accept "EFI BIOS" for
21 # completeness, but we will switch the order.
22 if [ "$BOOT_METHODS"x = ""x ] \
23 || [ "$BOOT_METHODS"x = "BIOS EFI"x ] \
24 || [ "$BOOT_METHODS"x = "EFI BIOS"x ] ; then
25 BOOT_BIOS=1
26 BOOT_EFI=2
27 elif [ "$BOOT_METHODS"x = "BIOS"x ] ; then
28 BOOT_BIOS=1
29 BOOT_EFI=0
30 elif [ "$BOOT_METHODS"x = "EFI"x ] ; then
31 BOOT_EFI=1
32 BOOT_BIOS=0
33 else
34 echo "ERROR: Unrecognized boot method choice $BOOT_METHODS"
35 exit 1
36 fi
37
38 N=$1
39 CDDIR=$2
40 BOOTDIR=
41 if [ "$DI_WWW_HOME" = "default" ]; then
42 # Tempting as it might be to merge these two definitions using $ARCH,
43 # do *not* do that - these defs are parsed out by other scripts that
44 # won't cope with that
45 if [ "$ARCH" = amd64 ]; then
46 DI_WWW_HOME="https://d-i.debian.org/daily-images/amd64/daily"
47 else
48 DI_WWW_HOME="https://d-i.debian.org/daily-images/i386/daily"
49 fi
50 try_di_image_cache
51 else
52 DI_WWW_HOME=$(echo $DI_WWW_HOME | sed "s,%ARCH%,$ARCH,")
53 fi
54
55 case "$MKISOFS" in
56 *xorriso*)
57 XORRISO_VER=$(xorriso_version)
58 ;;
59 *)
60 echo "ERROR: debian-cd now depends on xorriso for making x86 bootable CDs."
61 exit 1;
62 ;;
63 esac
64
65 cd $CDDIR/..
66
67 # This script is called with $1 (now $N) as the CD to make bootable.
68 # Exit if this is not a boot disk
69 if [ $N != 1 ] ; then exit 0; fi
70
71 INSTALLDIR_amd64="install.amd"
72 INSTALLDIR_i386="install.386"
73
74 if [ "$ARCH" = amd64 ]; then
75 INSTALLDIR="$INSTALLDIR_amd64"
76 else
77 INSTALLDIR="$INSTALLDIR_i386"
78 fi
79
80 BOOT_IMAGES="cdrom/initrd.gz cdrom/vmlinuz cdrom/debian-cd_info.tar.gz"
81
82 # Download boot images.
83 for image in $BOOT_IMAGES; do
84 if [ ! -e "$image" ]; then
85 dir=$(dirname $image)
86 mkdir -p $dir
87 if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
88 cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$image"
89 elif [ ! "$DI_WWW_HOME" ];then
90 if [ ! "$DI_DIR" ];then
91 DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
92 fi
93 # echo "Copying images from $DI_DIR"
94 cp "$DI_DIR/$image" "$image"
95 else
96 $WGET "$DI_WWW_HOME/$image" -O "$image"
97 fi
98 fi
99 done
100
101 # Images that are not really required or may be unavailable.
102 for image in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
103 if [ ! -e "$image" ]; then
104 dir=$(dirname $image)
105 mkdir -p $dir
106 if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
107 cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$image"
108 elif [ ! "$DI_WWW_HOME" ];then
109 if [ ! "$DI_DIR" ];then
110 DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
111 fi
112 cp "$DI_DIR/$image" "$image" || true
113 else
114 $WGET "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
115 fi
116 fi
117 done
118
119 # Only disk one gets the extra files installed
120 if [ "$N" = "1" ]; then
121 # populate the install directory as well
122 for disk in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
123 if [ -e "$disk" ]; then
124 dir=$(dirname $disk)
125 mkdir -p $CDDIR/$INSTALLDIR/$dir
126 cp -lf $disk $CDDIR/$INSTALLDIR/$dir
127 fi
128 done
129
130 if [ -e "$MIRROR/tools" ] && \
131 [ ! -e $CDDIR/tools ] && \
132 [ "$OMIT_DOC_TOOLS" != "1" ] ; then
133 echo " Adding tools to CD1"
134 $BASEDIR/tools/add_files $CDDIR $MIRROR tools
135 # Remove the win32-loader/ subdirectory from tools, as d-i already installs setup.exe
136 rm -Rf $CDDIR/tools/win32-loader
137 fi
138 fi
139
140 extra_image () {
141 image=$1
142 doppelgangers="$2"
143 dir=$(dirname "$image")
144
145 mkdir -p $CDDIR/$INSTALLDIR/$dir
146 if [ ! -e $CDDIR/$INSTALLDIR/"$image" ] ; then
147 if [ ! "$DI_WWW_HOME" ] ; then
148 if [ ! "$DI_DIR" ] ; then
149 DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
150 fi
151 cp "$DI_DIR/cdrom/$image" $CDDIR/$INSTALLDIR/"$image"
152 else
153 $WGET "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
154 fi
155 fi
156 for doppelganger in $doppelgangers ; do
157 if [ -f "$CDDIR/$INSTALLDIR/$dir/$doppelganger" ] &&
158 cmp -s $CDDIR/$INSTALLDIR/"$image" $CDDIR/$INSTALLDIR/"$dir"/"$doppelganger" ; then
159 echo " $image identical to $doppelganger. Linking"
160 ln -nf $CDDIR/$INSTALLDIR/"$dir"/"$doppelganger" $CDDIR/$INSTALLDIR/"$image"
161 break
162 fi
163 done
164 }
165
166 case "$DESKTOP" in
167 $UNSPEC_DESKTOP_DEFAULT)
168 # default from tasksel
169 DESKTOP=
170 ;;
171 all)
172 # default from tasksel
173 DESKTOP=
174 ;;
175 light)
176 DESKTOP=xfce
177 ;;
178 esac
179 # desktop boot parameter gets set separately through DESKTOP variable
180 KERNEL_PARAMS="$(echo "$KERNEL_PARAMS" | sed -r "s/desktop=[^ ]* ?//")"
181
182 mkdir -p $CDDIR/$INSTALLDIR
183 cp -lf cdrom/vmlinuz $CDDIR/$INSTALLDIR/
184 cp -lf cdrom/initrd.gz $CDDIR/$INSTALLDIR/
185 if [ -e $CDDIR/tools/loadlin.exe ]; then
186 echo "\\tools\\loadlin.exe vmlinuz initrd=initrd.gz" | todos > $CDDIR/$INSTALLDIR/install.bat
187 fi
188
189 # In case of a multi-arch CD the script will be called two times. The
190 # first time the isolinux dir gets set up for single arch; if it is
191 # called a second time the isolinux dir already exists and we know it
192 # will be multi-arch. We then throw away the first version and just
193 # configure things from scratch for multi-arch.
194
195 MULTIARCH=
196 if [ -e boot$N/isolinux/isolinux.cfg ]; then
197 MULTIARCH=1
198 rm -r boot$N/isolinux
199 fi
200
201 mkdir -p boot$N/isolinux
202 # Isolinux setup including config and help files comes from d-i.
203 cat cdrom/debian-cd_info.tar.gz | (cd boot$N/isolinux/; tar zx)
204
205 # Not everything in the tarball is isolinux stuff
206 if [ -e boot$N/isolinux/win32-loader.ini ] ; then
207 echo " Moving extra loader files into place:"
208 for file in boot$N/isolinux/g2ldr* boot$N/isolinux/setup.exe boot$N/isolinux/win32-loader.ini; do
209 if [ -e $file ] ; then
210 printf " "
211 mv -v $file CD$N/
212 fi
213 done
214 # Modify win32-loader.ini for the "current" arch
215 sed -i "s|install/|$INSTALLDIR/|" CD$N/win32-loader.ini
216 if [ "${DESKTOP}" ] ; then
217 sed -i "s|^\(default_desktop\)=.*|\1=${DESKTOP}|" CD$N/win32-loader.ini
218 fi
219 fi
220
221 # Add autorun
222 if [ -f CD$N/setup.exe ]; then
223 # when win32-loader is present, use that (it already checks for README.html)
224 todos > $CDDIR/autorun.inf <<EOF
225 [autorun]
226 open=setup.exe
227 icon=setup.exe,0
228 label=Install Debian GNU/Linux
229
230 [Content]
231 MusicFiles=false
232 PictureFiles=false
233 VideoFiles=false
234 EOF
235 elif [ -f $CDDIR/README.html ]; then
236 todos > $CDDIR/autorun.inf <<EOF
237 [autorun]
238 open=autorun.bat
239 label=Install Debian GNU/Linux
240
241 [Content]
242 MusicFiles=false
243 PictureFiles=false
244 VideoFiles=false
245 EOF
246 todos > $CDDIR/autorun.bat <<EOF
247 @echo Starting "README.html"...
248 @start README.html
249 @exit
250 EOF
251 fi
252
253 # Common mkisofs options when creating CDs
254 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
255 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
256
257 # BIOS-boot specific stuff. Even when we're *not* doing BIOS boot, we
258 # still create all the isolinux config files as they're parsed and
259 # used later. We just don't grab all the syslinux files, then make
260 # sure that we *don't* set up BIOS boot on the xorriso command line.
261 if [ "$BOOT_BIOS" = 1 ] ; then
262 echo " Adding BIOS boot code for $ARCH on CD$N"
263 mkdir -p $CDDIR/../syslinux
264 SYSLINUXDEB=$(find_pkg_file syslinux)
265 if [ -z "$SYSLINUXDEB" ]; then
266 echo "ERROR: syslinux package is required" >&2
267 exit 1
268 fi
269 (dpkg --fsys-tarfile "$MIRROR/$SYSLINUXDEB" | \
270 tar xf - -C $CDDIR/../syslinux ./usr/lib)
271
272 if [ -n "$ARCHIVE_EXTRACTED_SOURCES" ]; then
273 echo $SYSLINUXDEB >> $CDDIR/../$N.pkgs_extracted
274 find_pkg_file syslinux source >> $CDDIR/../$N.pkgs_extracted
275 fi
276
277 ISOLINUXDEB=$(find_pkg_file isolinux)
278 if [ -z "$ISOLINUXDEB" ]; then
279 echo "ERROR: isolinux package is required" >&2
280 exit 1
281 fi
282 (dpkg --fsys-tarfile "$MIRROR/$ISOLINUXDEB" | \
283 tar xf - -C $CDDIR/../syslinux ./usr/lib)
284
285 if [ -n "$ARCHIVE_EXTRACTED_SOURCES" ]; then
286 echo $ISOLINUXDEB >> $CDDIR/../$N.pkgs_extracted
287 find_pkg_file isolinux source >> $CDDIR/../$N.pkgs_extracted
288 fi
289 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-isohybrid-mbr syslinux/usr/lib/ISOLINUX/isohdpfx.bin"
290
291 cp -f $CDDIR/../syslinux/usr/lib/ISOLINUX/isolinux.bin boot$N/isolinux/
292 cp -f $CDDIR/../syslinux/usr/lib/syslinux/modules/bios/vesamenu.c32 boot$N/isolinux/
293 cp -f $CDDIR/../syslinux/usr/lib/syslinux/modules/bios/ldlinux.c32 boot$N/isolinux/
294 cp -f $CDDIR/../syslinux/usr/lib/syslinux/modules/bios/libcom32.c32 boot$N/isolinux/
295 cp -f $CDDIR/../syslinux/usr/lib/syslinux/modules/bios/libutil.c32 boot$N/isolinux/
296
297 if [ ! -z "$MULTIARCH" ]; then
298 # Mandatory for 64bits capability detection
299 if [ -f $CDDIR/../syslinux/usr/lib/syslinux/modules/bios/ifcpu64.c32 ] ; then
300 cp -f $CDDIR/../syslinux/usr/lib/syslinux/modules/bios/ifcpu64.c32 boot$N/isolinux/
301 else
302 cp -f $CDDIR/../syslinux/usr/lib/syslinux/ifcpu64.c32 boot$N/isolinux/
303 fi
304 fi
305
306 # If we don't have grub stuff from d-i, tell xorriso to add a
307 # partition offset for the isohybrid code
308 if [ ! -d boot$N/isolinux/grub ] || [ $BOOT_EFI = 0 ] ; then
309 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-partition_offset 16"
310 fi
311
312 # Add the normal options to make an ElTorito bootable CD/DVD using isolinux
313 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b isolinux/isolinux.bin"
314 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c isolinux/boot.cat"
315 bls=4 # Specify 4 for BIOS boot, don't calculate it
316 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-load-size $bls"
317 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-info-table"
318 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
319
320 # We explicitly put the boot bits in boot$N (as opposed to CD$N)
321 # and list it first on the eventual mkisofs command line. That
322 # means they'll be placed nearer the front of the eventual image;
323 # some older BIOSes apparently have a limitation on what they'll
324 # boot here.
325 add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
326 else
327 echo " No BIOS boot code for $ARCH on CD$N"
328 fi
329
330 di_syslinux_ver="$(di_syslinux_version)"
331 case "$di_syslinux_ver" in
332 2.0)
333 : ;;
334 1.*)
335 echo "Error: syslinux config versions before 2.0 are not supported"
336 exit 1 ;;
337 *)
338 echo "Error: unrecognized syslinux config version '$di_syslinux_ver'"
339 exit 1 ;;
340 esac
341
342 if [ -e boot$N/isolinux/f3.txt.withgtk ]; then
343 extra_image gtk/vmlinuz "../vmlinuz"
344 extra_image gtk/initrd.gz "../initrd.gz"
345 mv boot$N/isolinux/f3.txt.withgtk boot$N/isolinux/f3.txt
346 mv boot$N/isolinux/f4.txt.withgtk boot$N/isolinux/f4.txt
347 if [ -e boot$N/isolinux/isolinux.cfg.withgtk ]; then
348 mv boot$N/isolinux/isolinux.cfg.withgtk boot$N/isolinux/isolinux.cfg
349 fi
350 if [ -e $CDDIR/tools/loadlin.exe ]; then
351 echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz initrd=initrd.gz vga=788" | todos > $CDDIR/$INSTALLDIR/gtk/install.bat
352 fi
353 fi
354 rm -f boot$N/isolinux/isolinux.cfg.with*
355
356 if variant_enabled "xen" ; then
357 extra_image xen/vmlinuz "../vmlinuz ../gtk/vmlinuz"
358 extra_image xen/initrd.gz "../initrd.gz ../gtk/initrd.gz"
359 extra_image xen/debian.cfg || extra_image xen/xm-debian.cfg
360 fi
361
362 if [ -z "$MULTIARCH" ]; then
363 # Set up isolinux dir for only the current arch
364 grep -lr '%install%' boot$N/isolinux/* | xargs -r sed -i "s|%install%|$INSTALLDIR|"
365
366 # Remove the x86*.cfg files to avoid them being loaded on a disc
367 # that does not have both amd64 and i386 dirs.
368 find boot$N/isolinux/ -name "x86*.cfg" -delete
369 else
370 # Use the syslinux.cfg with architecture detection
371 mv boot$N/isolinux/x86syslinux.cfg boot$N/isolinux/isolinux.cfg
372
373 # Set up isolinux dir for multi-arch
374 grep -lr '%install[-x86]*%' boot$N/isolinux/* | \
375 xargs -r sed -i -e "s|%install%|$INSTALLDIR_amd64|" \
376 -e "s|%install-x86%|$INSTALLDIR_i386|"
377
378 for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do
379 sed -i "4 s/^$/(note: amd64 is default; prepend 'x86-' to use an i386 kernel instead)/" $file
380 done
381
382 if [ -e CD$N/win32-loader.ini ]; then
383 # Modify win32-loader.ini to also cover the "other" arch
384 if [ "$ARCH" = amd64 ]; then
385 sed -i -e "/^arch=/d
386 /^amd64\//p; s/^amd64/i386/; s/=$INSTALLDIR_amd64/=$INSTALLDIR_i386/g" \
387 CD$N/win32-loader.ini
388 else
389 sed -i -e "/^arch=/d
390 /^i386\//p; s/^i386/amd64/; s/=$INSTALLDIR_i386/=$INSTALLDIR_amd64/g" \
391 CD$N/win32-loader.ini
392 fi
393 fi
394
395 if [ "$BOOT_BIOS" = 1 ] ; then
396 # Add another ifcpu64.c32 launch to let the 'enter' in help menus work correctly
397 sed -i "/^include menu.cfg/ a\include instsel.cfg" \
398 boot$N/isolinux/prompt.cfg
399 cat >boot$N/isolinux/instsel.cfg <<EOF
400 default install-select
401 label install-select
402 kernel ifcpu64.c32
403 append installgui -- x86-installgui
404 EOF
405 fi
406 fi
407
408 if [ "$SPLASHPNG" ] ; then
409 cp $SPLASHPNG boot$N/isolinux/splash.png
410 fi
411
412 # used by Debian Edu
413 if [ "$LOGOPNG" ] ; then
414 # Add custom logo to the initrd.gz file, replacing old image
415 GTKINITRD=$CDDIR/$INSTALLDIR/gtk/initrd
416 GTKINITRDGZ=$GTKINITRD.gz
417 echo "info: Adding $LOGOPNG to $GTKINITRD"
418 INITRDDIR=$TDIR/initrd-$$
419 # Repack initrd with new image
420 mkdir -p $INITRDDIR
421 (
422 cd $INITRDDIR
423 # There may be multiple hardlinks to the initrd.gz, so
424 # explicitly break the links here
425 zcat $GTKINITRDGZ > $GTKINITRD
426 rm -f $GTKINITRDGZ
427 mkdir -p $INITRDDIR/usr/share/graphics
428 cp $LOGOPNG $INITRDDIR/usr/share/graphics/logo_debian.png
429 echo usr/share/graphics/logo_debian.png | \
430 cpio -oA -H newc -F $GTKINITRD
431 pigz -9nm $GTKINITRD
432 )
433 rm -rf $INITRDDIR
434 fi
435
436 sed -i "s|built on|built $BUILD_DATE; d-i|" boot$N/isolinux/f1.txt
437
438 if [ -n "$KERNEL_PARAMS" ]; then
439 # Substitute custom kernel params into the isolinux config file(s)
440 for file in boot$N/isolinux/*.cfg; do
441 case "$(basename $file)" in
442 instsel.cfg)
443 continue ;;
444 esac
445 sed -i "/^[[:space:]]\+append .*---/ s|append|append $KERNEL_PARAMS|" \
446 $file
447 done
448 fi
449
450 set_default_desktop
451 rm -rf cdrom
452
453 if [ -d boot$N/isolinux/grub ] && [ $BOOT_EFI -ne 0 ] ; then
454 echo " Adding EFI boot code for $ARCH on CD$N"
455
456 # Move GRUB files to the right place.
457 mkdir -p $CDDIR/EFI/boot
458 mcopy -n -s -i boot$N/isolinux/grub/efi.img '::efi/*' $CDDIR/EFI
459 mkdir -p $CDDIR/boot/grub
460 mv boot$N/isolinux/grub/* $CDDIR/boot/grub/
461 rmdir boot$N/isolinux/grub
462
463 # If we're only doing EFI, copy the splash file from the BIOS boot dir
464 if [ $BOOT_EFI = 1 ] ; then
465 mkdir -p $CDDIR/isolinux
466 cp boot$N/isolinux/splash.png $CDDIR/isolinux
467 fi
468
469 # Create grub menu entries to match the isolinux ones
470 sed -i '/^menuentry/Q' $CDDIR/boot/grub/grub.cfg;
471 $BASEDIR/tools/boot/$DI_CODENAME/parse_isolinux \
472 boot$N/isolinux $CDDIR $BASEDIR/data/$DI_CODENAME/grub-theme.in "$DISKINFO_DISTRO" "$DEBIAN_KERNEL" "$DEBVERSION" \
473 >> $CDDIR/boot/grub/grub.cfg
474 cp -v $BASEDIR/data/$DI_CODENAME/hl*png $CDDIR/boot/grub/theme
475 NUM_ENTRIES=$(grep menuentry $CDDIR/boot/grub/grub.cfg | wc -l)
476 echo " CD$N/boot/grub/grub.cfg has $NUM_ENTRIES boot entries defined"
477
478 # Stuff the EFI boot files into a FAT filesystem, making it as
479 # small as possible. We end up re-packing like this in case we're
480 # making a multi-arch image
481
482 # First, work out how many blocks we need
483 blocks=$(calculate_efi_image_size $CDDIR)
484
485 # Now make a new image to contain the files
486 rm -f $CDDIR/boot/grub/efi.img
487 mkfs.msdos -v -C "$CDDIR/boot/grub/efi.img" $blocks >/dev/null
488
489 # And copy them into place
490 mmd -i "$CDDIR/boot/grub/efi.img" ::efi
491 mcopy -o -s -i "$CDDIR/boot/grub/efi.img" $CDDIR/EFI/* \
492 "::efi"
493
494 if [ $BOOT_EFI = 2 ] ; then
495 # We're being added alongside (after) a BIOS boot record. Tell
496 # xorriso to create a (secondary) ElTorito boot record for the
497 # EFI bootloader. Otherwise, xorriso will create it as the
498 # primary.
499 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-eltorito-alt-boot"
500 fi
501
502 # Ugh - different code here depending on the version of xorriso we've got
503 if [ $XORRISO_VER -le 10202 ] ; then
504 # 1.2.2 shipping in Wheezy
505 echo " Using older EFI command line for xorriso $XORRISO_VER"
506
507 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--efi-boot boot/grub/efi.img"
508 # Add the efi image as a FAT partition too, so our CD image will
509 # also boot on a USB key (like isohybrid, just implemented
510 # differently)
511 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-append_partition 2 0x01 $CDDIR/boot/grub/efi.img"
512
513 elif [ $XORRISO_VER -gt 10202 ] ; then
514 echo " Using newer EFI support in xorriso $XORRISO_VER"
515 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-e boot/grub/efi.img -no-emul-boot"
516 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-isohybrid-gpt-basdat -isohybrid-apm-hfsplus"
517 fi
518 else
519 echo " No EFI boot code for $ARCH on CD$N"
520 fi
521
522 # th,th, thats all
523