change repo data to NanJing local
[tools/itest-cases-mic.git] / fixtures / ks_files / error_repo.ks
1 # -*-mic2-options-*- -f loop --pack-to=@NAME@-rs.zip -*-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 part / --size 1624 --ondisk sda --fstype=ext3 --label platform
12
13 rootpw tizen 
14 bootloader  --timeout=0  --append="rootdelay=5"   
15
16 desktop --autologinuser=tizen  
17 user --name tizen  --groups audio,video --password 'tizen'
18
19 repo --name=Tizen-base --baseurl=http://109.123.123.185/download.tizendev.org/not-exists/ --save --gpgkey=0 --ssl_verify=no
20 repo --name=Tizen-main --baseurl=http://109.123.123.185/download.tizendev.org/not-exist/ --save --gpgkey=0 --ssl_verify=no
21
22 %packages
23
24 @Medfield Support
25 @common
26 @appscommon
27 @appstargetsdk
28 @appsref
29 @osp
30 @trats-blackbay
31
32
33 pvr-bin-mdfld
34 -charging-animation
35 %end
36
37 %prepackages
38 eglibc
39 systemd
40 busybox
41 libacl
42 libcap
43 dbus-libs
44 libgcc
45 libudev
46 libattr
47 default-files-slp
48 openssl
49 libprivilege-control
50 libprivilege-control-conf
51 security-server
52 libdlog
53 libsecurity-server-client
54 sqlite
55 tzdata-slp
56 vconf
57 tizen-coreutils
58 %end
59
60 %attachment
61 preos-runtime
62 bootstub-bb
63 /boot/cmdline
64 /boot/vmlinuz-*
65 %end
66
67 %post
68 echo 'kickstart post script start'
69 if [ -d /etc/init.d ]; then
70     cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
71 fi
72 rm -rf /etc/init.d*
73 ln -sf /etc/rc.d/init.d /etc/init.d
74
75 rm -rf /etc/localtime  
76 ln -sf /opt/etc/localtime /etc/localtime  
77 #rm -rf /usr/share/zoneinfo  
78 #ln -sf /opt/share/zoneinfo /usr/share/zoneinfo 
79
80 # Without this line the rpm don't get the architecture right.
81 echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
82
83 ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
84 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
85 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
86
87 pkg_initdb
88
89 INITDB=1 ail_initdb
90 /opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
91
92 # ims-service domain setting
93 RESULT=`grep "192.168.0.163 config.45001.rcse" /etc/hosts`  
94 if [ -z "$RESULT" ]; then  
95     echo "Set domain for auto configuration"  
96     echo "192.168.0.163 config.45001.rcse" >> /etc/hosts  
97 else  
98     echo "Already setted domain for test auto configuration"  
99 fi  
100 # ims-service domain setting
101
102 cat > /usr/bin/press << EOF
103 #!/bin/sh
104
105 JUNK="SLP"
106
107 [ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1"
108
109 echo "Press return key to stop scripts"
110 read -t \$TIMEOUT JUNK
111 exit \$?
112 EOF
113 chmod +x /usr/bin/press
114
115 # [systemd] we need suid-root X for it to work from user-session
116 #           Xorg will move to system, so this is temporary
117 chmod 4755 /usr/bin/Xorg
118
119 ln -s /opt/etc/X11/xkb /usr/share/X11
120
121 echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
122
123 rm -rf /usr/include
124 rm -rf /usr/share/man
125 rm -rf /usr/share/doc
126
127 ldconfig
128
129 mkdir -p /opt/var/lib/dbus
130
131
132 # read-writeable /var will be bind-mounted to /opt/var leaving rootfs read-only
133 # below script more generic
134
135 rm -f /var/lib/rpm/__db*
136 rpm --rebuilddb
137 cp -a /var /opt/
138 rm -rf /var
139 mkdir /var
140
141
142 # [systemd] some firstboot script like kbd could be done to image-creatation stage
143 #           this patch is for it.
144 for i in /etc/preconf.d/*; do
145     $i
146 done
147
148 if [ -e /usr/bin/build-backup-data.sh ]; then
149            /usr/bin/build-backup-data.sh
150 fi
151
152 /etc/make_info_file.sh Ref.Device-210 Tizen_Ref.Device-210_`date +%Y%m%d.%H%M`
153
154 ln -sf /etc/info.ini /opt/etc/info.ini
155 ln -sf /etc/info.ini /usr/etc/info.ini
156
157 echo "s1:12345:respawn:/sbin/agetty -L 115200 ttyMFD3 vt100" >> /etc/inittab
158
159
160 %end
161
162 %post --nochroot
163
164 %end
165