From: Graydon, Tracy Date: Fri, 12 Oct 2012 19:48:46 +0000 (-0700) Subject: Some tweaking of post scripts X-Git-Tag: accepted/trunk/20121012.192921^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1301e4f44b89d72855247666b5c4770daf42a4b7;p=profile%2Fivi%2Fimage-configurations.git Some tweaking of post scripts --- diff --git a/custom/scripts/ivi-2.0-symlinks.post b/custom/scripts/ivi-2.0-symlinks.post index 5502b45..6b65098 100644 --- a/custom/scripts/ivi-2.0-symlinks.post +++ b/custom/scripts/ivi-2.0-symlinks.post @@ -1,13 +1,73 @@ -# some needed symlinks and other tweaks needed +# customize the slp-common post script # to make udev happy -ln -s /bin/busybox /sbin/blkid +ln -sf /bin/busybox /sbin/blkid # where in the world is xinitrc? -ln -s /etc/X11/xinitrc /usr/etc/X11/xinitrc +ln -sf /etc/X11/xinitrc /usr/etc/X11/xinitrc + +echo 'kickstart post script start' +if [ -d /etc/init.d ]; then + cp /etc/init.d/* /etc/rc.d/init.d/ -rdf +fi +rm -rf /etc/init.d* +ln -sf /etc/rc.d/init.d /etc/init.d + +rm -rf /etc/localtime +ln -sf /opt/etc/localtime /etc/localtime + +# Without this line the rpm don't get the architecture right. +# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform +> /etc/rpm/platform + +ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N "" +ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N "" +ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" -#UI needful things pkg_initdb INITDB=1 ail_initdb /opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb + +# ims-service domain setting +RESULT=`grep "192.168.0.163 config.45001.rcse" /etc/hosts` +if [ -z "$RESULT" ]; then + echo "Set domain for auto configuration" + echo "192.168.0.163 config.45001.rcse" >> /etc/hosts +else + echo "Already setted domain for test auto configuration" +fi +# ims-service domain setting + +cat > /usr/bin/press << EOF +#!/bin/sh + +JUNK="SLP" + +[ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1" + +echo "Press return key to stop scripts" +read -t \$TIMEOUT JUNK +exit \$? +EOF +chmod +x /usr/bin/press + +ln -s /opt/etc/X11/xkb /usr/share/X11 + +echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev + +rm -rf /usr/share/man +rm -rf /usr/share/doc + +ldconfig + +mkdir -p /opt/var/lib/dbus + +rm -f /var/lib/rpm/__db* +mv -f /var/lib/rpm /opt/var/lib/ +ln -sf /opt/var/lib/rpm /var/lib/rpm +rpmdb --rebuilddb + +if [ -e /usr/bin/build-backup-data.sh ]; then + /usr/bin/build-backup-data.sh +fi diff --git a/ivi/ivi-2.0.yaml b/ivi/ivi-2.0.yaml index a1b1712..86bf9e3 100755 --- a/ivi/ivi-2.0.yaml +++ b/ivi/ivi-2.0.yaml @@ -33,11 +33,10 @@ PrePackages: - vconf - tizen-coreutils PostScripts: - - slp-common + - ivi-2.0-symlinks - slp-e4412 - usb-networking - symlink-root - inittab - boot-into-ui - hotfixes-keyboard - - ivi-2.0-symlinks diff --git a/ivi/pinetrail-2.0.yaml b/ivi/pinetrail-2.0.yaml index f686f21..02ede64 100755 --- a/ivi/pinetrail-2.0.yaml +++ b/ivi/pinetrail-2.0.yaml @@ -33,11 +33,10 @@ PrePackages: - vconf - tizen-coreutils PostScripts: - - slp-common + - ivi-2.0-symlinks - slp-e4412 - usb-networking - symlink-root - inittab - boot-into-ui - hotfixes-keyboard - - ivi-2.0-symlinks diff --git a/repos.yaml b/repos.yaml index c4a75ed..85f3c1a 100755 --- a/repos.yaml +++ b/repos.yaml @@ -1,21 +1,19 @@ Repositories: - Name: Tizen-base - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/base/@ARCH@/packages/ + Url: https://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/base/@ARCH@/packages/ + Options: --save --ssl_verify=no - Name: Tizen-base-debug - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/base/@ARCH@/debug/ - - Name: Tizen-main - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/main/@ARCH@/packages/ - - Name: Tizen-main-debug - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/main/@ARCH@/debug/ + Url: https://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/base/@ARCH@/debug/ + Options: --save --ssl_verify=no - Name: Tizen-ivi - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi/@ARCH@/packages/ + Url: https://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi/@ARCH@/packages/ + Options: --save --ssl_verify=no - Name: Tizen-ivi-debug - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi/@ARCH@/debug + Url: https://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi/@ARCH@/debug + Options: --save --ssl_verify=no - Name: Tizen-ivi-non-oss - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi-non-oss/@ARCH@/packages/ + Url: https://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi-non-oss/@ARCH@/packages/ + Options: --save --ssl_verify=no - Name: Tizen-ivi-non-oss-debug - Url: http://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi-non-oss/@ARCH@/debug/ - - Name: common-base - Url: http://download.tizen.org/snapshots/2.0alpha/common/latest/repos/tizen-base/@ARCH@/packages/ - - Name: common-main - Url: http://download.tizen.org/snapshots/2.0alpha/common/latest@/repos/tizen-main/@ARCH@/packages/ + Url: https://download.tizen.org/snapshots/2.0alpha/ivi/@BUILD_ID@/repos/ivi-non-oss/@ARCH@/debug/ + Options: --save --ssl_verify=no