-# create necessary stuff under WRKDIR
- rm -rf "$WRKDIR/cddir" "$WRKDIR/grub_tmp"
- mkdir -p "$WRKDIR/cddir" "$WRKDIR/grub_tmp"
-
-# execute grml2usb with all ISOs you'd like to install
- $GRML2USB "$@" "$WRKDIR/cddir"
-
-# install grub2 files
-# as we don't want to rely on a grub2 installation on the
-# running system let's grab it from the net
- cd "$WRKDIR"/grub_tmp/
- wget http://ftp.de.debian.org/debian/pool/main/g/grub2/"$GRUB_DEB"
- ar x "$GRUB_DEB"
- tar xzf data.tar.gz
- ./usr/bin/grub-mkimage -d usr/lib/grub/i386-pc \
- -o "$WRKDIR"/cddir/boot/grub/core.img biosdisk iso9660
-
- for a in usr/lib/grub/i386-pc/{*.mod,efiemu??.o,command.lst,moddep.lst,fs.lst,handler.lst,parttool.lst}; do
- test -e $a && cp $a "$WRKDIR"/cddir/boot/grub/
- done
+ $GRML2USB "${REMOVE_OPTS[@]}" ${ADD_OPTS:+"$ADD_OPTS"} "$@" "$WRKDIR/cddir"
+# }}}
+
+
+# move syslinux to isolinux {{{
+ mv "$WRKDIR"/cddir/boot/syslinux "$WRKDIR"/cddir/boot/isolinux