--- /dev/null
+part / --size 1300 --ondisk sda --grow --maxsize=1450 --fstype=ext3
+#part /home --size 1000 --grow --maxsize=1450 --ondisk sdb --fstype=ext3
--- /dev/null
+part / --size=1750 --ondisk mmcblk0p --fstype=ext4
+
+# This is not used currently. It is here because the /boot partition
+# needs to be the partition number 3 for the u-boot usage.
+part swap --size=8 --ondisk mmcblk0p --fstype=swap
+
+# This partition is made so that u-boot can find the kernel
+part /boot --size=32 --ondisk mmcblk0p --fstype=vfat
--- /dev/null
+part / --size=3400 --ondisk mmcblk0p --fstype=ext3
+
+# This is not used currently. It is here because the /boot partition
+# needs to be the partition number 3 for the u-boot usage.
+part swap --size=256 --ondisk mmcblk0p --fstype=swap
+
+# This partition is made so that u-boot can find the kernel
+part /boot --size=64 --ondisk mmcblk0p --fstype=vfat
--- /dev/null
+# ROOT fs partition
+part / --size=800 --ondisk mmcblk0p --fstype=ext4 --label=platform
+# DATA partition
+part /opt/ --size=1800 --ondisk mmcblk0p --fstype=ext4 --label=data
--- /dev/null
+part /boot --size 32 --ondisk sdb --fstype=ext2
+part /opt --size 300 --ondisk sdb --fstype=ext3
+part / --size 1024 --ondisk sdb --fstype=ext3
--- /dev/null
+part /boot --size 32 --ondisk sdb --fstype=ext2
+part /opt --size 300 --ondisk sdb --fstype=ext4
+part / --size 1024 --ondisk sdb --fstype=ext4
--- /dev/null
+# Without this line the rpm don't get the architecture right.
+echo -n 'armv7hl-tizen-linux' > /etc/rpm/platform
+
+# Also libzypp has problems in autodetecting the architecture so we force tha as well.
+# https://bugs.meego.com/show_bug.cgi?id=11484
+echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
--- /dev/null
+# Boot with full UX.
+ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
+
--- /dev/null
+# Boot multi-user with no UX. (Sort of like init runlevel 3.)
+ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
+
--- /dev/null
+if [ -n "$IMG_NAME" ]; then
+ echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
+fi
--- /dev/null
+# save a little bit of space at least...
+rm -f /boot/initrd*
--- /dev/null
+# Create /etc/cogl.conf file to load proper GL libraries on Cedartrail
+mkdir /etc/xdg/cogl
+echo "[global]" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_DRIVER=gles2" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_RENDERER=EGL" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_DEBUG=disable-atlas" >>/etc/xdg/cogl/cogl.conf
+
--- /dev/null
+sed -i s/ENGINE=gl/ENGINE=fb/ /etc/profile.d/menu-screen.sh
+
+echo "s1:12345:respawn:/sbin/agetty -L 115200 ttyMFD3 vt100" >> /etc/inittab
--- /dev/null
+# Prelink can reduce boot time
+if [ -x /usr/sbin/prelink ]; then
+ /usr/sbin/prelink -aRqm
+fi
--- /dev/null
+rm -f /var/lib/rpm/__db*
+rpm --rebuilddb
--- /dev/null
+echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
--- /dev/null
+cat /etc/pki/tls/certs/download.saobs.jf.intel.com >> /etc/pki/tls/certs/ca-bundle.crt
--- /dev/null
+# enable USB networking with IP address 192.168.1.1 by default
+cat >/etc/rc.d/rc3.d/S99usbnet.sh <<END
+#!/bin/sh
+echo rndis > /sys/class/android_usb/android0/functions
+echo 1 > /sys/class/android_usb/android0/enable
+ifconfig rndis0 192.168.100.1
+END
+chmod 777 /etc/rc.d/rc3.d/S99usbnet.sh
--- /dev/null
+mkdir -p /opt/home/app
+chown inhouse: /opt/home/app
+mkdir -p /home
+ln -s /opt/home/app /home/app
+ln -sf /opt/home/root /root
--- /dev/null
+# Set symlink pointing to .desktop file
+ln -sf x-meego-ivi.desktop /usr/share/xsessions/default.desktop
--- /dev/null
+# Set symlink pointing to .desktop file
+ln -sf dawati.desktop /usr/share/xsessions/default.desktop