if test "$imagetype" = product ; then
echo "running kiwi --create-instsource..."
chroot $BUILD_ROOT su -c "kiwi --root $TOPDIR/KIWIROOT -v -v --instsource-local --logfile terminal -p $TOPDIR/SOURCES --create-instsource $TOPDIR/SOURCES" - $BUILD_USER < /dev/null && BUILD_SUCCEEDED=true
- for i in $BUILD_ROOT/$TOPDIR/KIWIROOT/main/* ; do
- test -d "$i" || continue
- n="${i##*/}"
- test "$n" = scripts && continue
- test "$n" != "${n%0}" && continue
- chroot $BUILD_ROOT su -c "suse-isolinux $TOPDIR/KIWIROOT/main/$n $TOPDIR/KIWI/$n.iso" - $BUILD_USER
- done
+### This block is obsolete with current kiwi versions, only needed for kiwi 3.01 version
+# for i in $BUILD_ROOT/$TOPDIR/KIWIROOT/main/* ; do
+# test -d "$i" || continue
+# n="${i##*/}"
+# test "$n" = scripts && continue
+# test "$n" != "${n%0}" && continue
+# chroot $BUILD_ROOT su -c "suse-isolinux $TOPDIR/KIWIROOT/main/$n $TOPDIR/KIWI/$n.iso" - $BUILD_USER
+# done
else
BUILD_SUCCEEDED=true
if [ -z "$RUNNING_IN_VM" ]; then