# -*-mic2-options-*- -f loop --pack-to=@NAME@.tar.gz -*-mic2-options-*-

# 
# Do not Edit! Generated by:
# kickstarter.py
# 

lang en_US.UTF-8
keyboard us
timezone --utc America/Los_Angeles
# ROOT fs partition
part / --size=3000 --fstype=ext4 --label=platform --uuid=4f5fff4c-4d1e-11e3-b3c5-180373d78786 --fsoptions=defaults,noatime
# DATA partition
part /opt/ --size=3000 --fstype=ext4 --label=data --uuid=4f602120-4d1e-11e3-a223-180373d78786 --fsoptions=defaults,noatime
# UMS partition
part /opt/usr/ --size=3000 --fstype=ext4 --label=ums --uuid=4f603fca-4d1e-11e3-8f51-180373d78786 --fsoptions=defaults,noatime

rootpw tizen 
bootloader  --timeout=0  --append="rootdelay=5"   

desktop --autologinuser=root  
user --name root  --groups audio,video --password ''

installerfw_plugins "fstab"

repo --name=mobile --baseurl=http://download.tizen.org/snapshots/tizen/mobile/@BUILD_ID@/repos/mobile/armv7l/packages/ --save  --ssl_verify=no

%packages

@Base System
@Console Tools
@Mobile Enlightenment
@Mobile Applications
@Mobile Framework
@Mobile Osp
@RD PQ Adaptation
@Graphics and UI Framework X


sdbd
setup-mobile
%end



%post
# Bug: https://bugs.tizen.org/jira/browse/TDIST-266
pkg_initdb

# Bug: https://bugs.tizen.org/jira/browse/TDIST-260
INITDB=1 ail_initdb

# Bug: https://bugs.tizen.org/jira/browse/PTREL-137
echo "DISPLAY=:0" >> /etc/sysconfig/preload

# Make sdb work.
#vconftool set -t int memory/setting/usb_sel_mode 0 -f
set_usb_debug.sh --set

# Set environment for launchpad daemon. Fix TDIST-264
cat > /etc/sysconfig/launchpad <<EOF
DISPLAY=:0
EOF

# Since applications runs with the "User" label, the app
# home dir must have the same label
chsmack -a User /opt/home/app

# vconf should have 'User' label.
find /opt/var/kdb | xargs chsmack -a 'User'

setup-fstab-mobile


%end

%post --nochroot

%end
