From: Sunmin Lee Date: Mon, 26 Dec 2016 05:44:42 +0000 (+0900) Subject: Change skel home path for RW partition X-Git-Tag: submit/tizen_3.0/20170105.051635^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1161000f6ab81fdae83602cbf8cf6da2e98e54b;p=platform%2Fcore%2Fsystem%2Ftizen-platform-config.git Change skel home path for RW partition As skel directory moved to RW partition (/etc/skel -> /opt/etc/skel), skel home directory defined in %post section also needs to be changed. Because the command chsmack doesn't work about symlink, it should be changed although /etc/skel is linked to /opt/etc/skel. Change-Id: Iee2961df03156aeff613033d8eece29c81194bb3 Signed-off-by: Sunmin Lee --- diff --git a/packaging/tizen-platform-config.spec b/packaging/tizen-platform-config.spec index d89b832..d555a4d 100644 --- a/packaging/tizen-platform-config.spec +++ b/packaging/tizen-platform-config.spec @@ -73,7 +73,7 @@ install -m 755 %{SOURCE2002} -D %{buildroot}%{_datadir}/upgrade/scripts/799.file # BEGIN - setting of predefined directories (also /etc/skel) ############################################## saveHOME="$HOME" -HOME="%{_sysconfdir}/skel" +HOME="/opt/etc/skel" . "%{_sysconfdir}/tizen-platform.conf" cat << ENDOFCAT | MODE 777 @@ -82,8 +82,10 @@ $TZ_SYS_STORAGE $TZ_SYS_MEDIA MODE 700 -SMACK User::Home true +SMACK _ true $TZ_USER_HOME + +SMACK User::Home true $TZ_USER_APPROOT $TZ_USER_DB $TZ_USER_PACKAGES