+if [ -d "$BUILD_TARGET" ] ; then
+ echo "$BUILD_TARGET assumes already, skipping the 'squashfs' stage therefore."
+else
+ mkdir -p "$BUILD_TARGET" || bailout 6 "Problem with creating $BUILD_TARGET for squashfs"
+
+ if [ "$ARCH" = x86 ] ; then
+ mkdir -p "$BUILD_TARGET"/boot/isolinux
+ mkdir "$BUILD_TARGET"/GRML
+ mkdir "$BUILD_TARGET"/live
+ cp /boot/memtest86+.bin "$BUILD_TARGET"/boot/isolinux/memtest
+ cp "$CHROOT_TARGET"/boot/initrd* "$BUILD_TARGET"/boot/isolinux/initrd.gz
+ cp "$CHROOT_TARGET"/boot/vmlinuz "$BUILD_TARGET"/boot/isolinux/linux26
+ cp /usr/lib/syslinux/chain.c32 "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/lib/syslinux/isolinux.bin "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/lib/syslinux/memdisk "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/lib/syslinux/menu.c32 "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/allinone.img "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/balder10.imz "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/boot-beep.msg "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/boot.msg "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/f* "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/isolinux.cfg "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/logo.16 "$BUILD_TARGET"/boot/isolinux/
+ cp /usr/share/grml-live/x86_files/boot/isolinux/syslinux.cfg "$BUILD_TARGET"/boot/isolinux/
+ # minirt26.gz
+ # boot.cat
+ if [ -n "$WINDOWS_BINARIES" ] ; then
+ mkdir "$BUILD_TARGET"/windows
+ ( cd "$BUILD_TARGET"/windows
+ for file in pageant plink pscp psftp putty puttygen ; do
+ wget $WINDOWS_BINARIES/$file
+ done )
+ fi
+ elif [ "$ARCH" = amd64 ] ; then
+ echo 'Warning: gebi, it is your turn. :)'>2
+ elif [ "$ARCH" = ppc ] ; then
+ echo 'Warning: formorer, it is your turn. :)'>2
+ else
+ echo 'Warning: Unsupported ARCH, sorry. Want to support it? Contribute!'>&2
+ fi
+fi
+
+if [ -d "$ISO_TARGET" ] ; then
+ echo "$ISO_TARGET assumes already, skipping the 'iso build' stage therefore."
+else
+ mkdir -p "$ISO_TARGET" || bailout 6 "Problem with creating $ISO_TARGET for squashfs"
+fi
+
+bailout 0
+