Add symlink /etc/smack -> ../opt/etc/smack 18/61718/1 accepted/tizen/ivi/20160310.064529 accepted/tizen/mobile/20160310.064419 accepted/tizen/tv/20160310.064444 accepted/tizen/wearable/20160310.064510 submit/tizen/20160310.062325
authorboseong choi <boseong.choi@samsung.com>
Thu, 10 Mar 2016 06:07:28 +0000 (15:07 +0900)
committerboseong choi <boseong.choi@samsung.com>
Thu, 10 Mar 2016 06:07:28 +0000 (15:07 +0900)
move /etc/smack to /opt/etc/smack if /etc/smack is directory,
and create symlink /etc/smack -> ../opt/etc/smack

Change-Id: I6ceb58f93645fe884d973d04a11da9d1d3ee00cd
Signed-off-by: boseong choi <boseong.choi@samsung.com>
scripts/generic-base.post

index 66cb3df..cfd5f93 100644 (file)
@@ -11,6 +11,11 @@ test -d /home && cp -arf /home/* /opt/home/
 rm -rf /home
 ln -snf opt/home /home
 
+test ! -e /opt/etc/smack && mkdir -p /opt/etc/smack
+test -d /etc/smack && cp -arf /etc/smack/* /opt/etc/smack/
+rm -rf /etc/smack
+ln -snf ../opt/etc/smack /etc/smack
+
 build_ts=$(date -u +%s)
 build_date=$(date -u --date @$build_ts +%Y%m%d_%H%M%S)
 build_time=$(date -u --date @$build_ts +%H:%M:%S)