Drop the preview and release ks; add the nochroot script; get rid of unused partition...
[profile/ivi/image-configurations-panda.git] / panda / panda.ks
1 # -*-mic2-options-*- -f loop --pack-to=@NAME@.tar.gz --runtime=native -*-mic2-options-*-
2
3
4 # Do not Edit! Generated by:
5 # kickstarter.py
6
7
8 lang en_US.UTF-8
9 keyboard us
10 timezone --utc America/Los_Angeles
11 # ROOT fs partition
12 part / --size=3000 --ondisk mmcblk0p --fstype=ext4 --label=platform
13 # DATA partition
14 part /opt/ --size=3000 --ondisk mmcblk0p --fstype=ext4 --label=data
15 # UMS partition
16 part /opt/usr/ --size=3000 --ondisk mmcblk0p --fstype=ext4 --label=ums
17
18 rootpw tizen 
19 bootloader  --timeout=0  --append="rootdelay=5"   
20
21 desktop --autologinuser=root  
22 user --name root  --groups audio,video --password ''
23
24 repo --name=Tizen-base1 --baseurl=file:///home/subham.sen/panda/base --ssl_verify=no
25 repo --name=Tizen-main1 --baseurl=file:///home/subham.sen/panda/main/ --save  --ssl_verify=no
26
27
28 %packages
29 @common
30 @appscommon
31 @appstargetsdk
32 @osp
33 @trats
34
35
36 %end
37
38 %prepackages
39 eglibc
40 systemd
41 busybox
42 libacl
43 libcap
44 dbus-libs
45 libgcc
46 libudev
47 libattr
48 default-files-tizen
49 openssl
50 libprivilege-control
51 libprivilege-control-conf
52 security-server
53 libdlog
54 libsecurity-server-client
55 sqlite
56 tzdata-slp
57 vconf
58 Tizen-coreutils
59 systemd-bootmode
60 media-service-upnp
61 %end
62
63
64 %post
65 echo 'kickstart post script start'
66 if [ -d /etc/init.d ]; then
67     cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
68 fi
69 rm -rf /etc/init.d*
70 ln -sf /etc/rc.d/init.d /etc/init.d
71
72 rm -rf /etc/localtime  
73 ln -sf /opt/etc/localtime /etc/localtime  
74 #rm -rf /usr/share/zoneinfo  
75 #ln -sf /opt/share/zoneinfo /usr/share/zoneinfo 
76
77 ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
78 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
79 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
80
81 pkg_initdb
82
83 INITDB=1 ail_initdb
84 /opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
85
86 # ims-service domain setting
87 RESULT=`grep "192.168.0.163 config.45001.rcse" /etc/hosts`  
88 if [ -z "$RESULT" ]; then  
89     echo "Set domain for auto configuration"  
90     echo "192.168.0.163 config.45001.rcse" >> /etc/hosts  
91 else  
92     echo "Already setted domain for test auto configuration"  
93 fi  
94 # ims-service domain setting
95
96 cat > /usr/bin/press << EOF
97 #!/bin/sh
98
99 JUNK="SLP"
100
101 [ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1"
102
103 echo "Press return key to stop scripts"
104 read -t \$TIMEOUT JUNK
105 exit \$?
106 EOF
107 chmod +x /usr/bin/press
108 mkdir -p /opt/var/lib/dbus
109 mkdir -p /var/lib/alsa
110
111 ln -s /opt/etc/X11/xkb /usr/share/X11
112
113 echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
114
115 mv /usr/include/python2.7/pyconfig.h /usr/pyconfig.h
116 rm -rf /usr/include/*
117 mkdir -p /usr/include/python2.7
118 mv /usr/pyconfig.h /usr/include/python2.7/pyconfig.h
119
120 rm -rf /usr/share/man
121 rm -rf /usr/share/doc
122
123 ldconfig
124
125 #mkdir -p /opt/var/lib/dbus
126 #mkdir -p /var/lib/alsa
127
128 rm -f /var/lib/rpm/__db*
129 mv -f /var/lib/rpm /opt/var/lib/ 
130 ln -sf /opt/var/lib/rpm /var/lib/rpm
131 rpmdb --rebuilddb
132
133 if [ -e /usr/bin/build-backup-data.sh ]; then
134            /usr/bin/build-backup-data.sh
135 fi
136
137 /etc/make_info_file.sh Ref.Device-210 Tizen_Ref.Device-210_`date +%Y%m%d.%H%M`
138
139 ln -sf /etc/info.ini /opt/etc/info.ini
140 ln -sf /etc/info.ini /usr/etc/info.ini
141
142 #Moving platform to arch specific posts, from common
143 echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
144
145
146 # invisi-cursor.post
147 # Config workaround for TIVI-515: Invisible cursor.
148 cd /opt/home/app/.e/e/config/samsung/
149 eet -d e.cfg config > a.config
150 sed -ie s/'value "cursor_size" int: 1'/'value "cursor_size" int: 24'/ a.config
151 eet -e e.cfg config a.config 1
152 chown app.app e.cfg
153 rm a.config
154
155
156 %end
157
158 %post --nochroot
159 if [ -f /etc/device-sec-policy ]; then
160  cp -fp /etc/device-sec-policy $INSTALL_ROOT/etc/
161 fi
162
163 if [ -d /etc/smack/accesses.d ]; then
164  mkdir -p $INSTALL_ROOT/opt/etc/smack/accesses.d
165  cp -rfp /etc/smack/accesses.d/* $INSTALL_ROOT/opt/etc/smack/accesses.d/
166 fi
167
168
169 %end