meta-tizen: add specific config in postinstall image 71/42471/1
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 5 May 2015 15:09:50 +0000 (17:09 +0200)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Mon, 29 Jun 2015 08:57:32 +0000 (10:57 +0200)
(From meta-tizen rev: 995fcde28e555ab5cf1620d90a59036b701c012c)

Change-Id: Icc3d707a29e089e55b98757c4c8899d71fdabe5c
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
meta-tizen/meta-tizen-common-base/recipes-image/config-image/config-image.bb

index 8805915..ed10ba2 100644 (file)
@@ -78,6 +78,32 @@ pkg_postinst_${PN} () {
     ln -s volatile/log  $D${localstatedir}/log
     
  fi
+  [ "x$D" != "x" ] && exit 1
+   mkdir -p $D/etc/profile.d
+   chsmack -a System $D/var/lib/buxton/*.db
+   chown -R buxton:buxton $D/var/lib/buxton
+   buxtonctl set-label base vconf User
+   vconftool set -t string db/ail/ail_info "0" -f -s User
+   vconftool set -t string db/menuscreen/desktop "0" -f -s User
+   vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s User
+   chown -R alice:users $D/home/alice
+   chown -R bob:users $D/home/bob
+   chown -R carol:users $D/home/carol
+   chown -R guest:users $D/home/guest
+   source $D/etc/tizen-platform.conf
+   chsmack -a '*' $D/var/lib/buxton || true
+   chsmack -a '*' /var/lib/buxton/* || true
+   chmod 0777 $D/var/lib/buxton || true
+   chmod 0666 $D/var/lib/buxton/* || true
+   ail_initdb
+   pkg_initdb
+   chmod 0600 $D/var/lib/buxton/* || true
+   chmod 0700 $D/var/lib/buxton || true
+   chsmack -a System $D/var/lib/buxton/* || true
+   chsmack -a System $D/var/lib/buxton || true
+   chsmack -a User $D/home/*/.applications/*/*
+   chsmack -a User $D/home/*/.applications/*/.*
 }
 
 FILES_${PN} = "${sysconfdir}/tizen \