summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunmin Lee <sunm.lee@samsung.com>2016-09-07 14:18:50 +0900
committerSunmin Lee <sunm.lee@samsung.com>2016-09-08 13:41:22 +0900
commitbb5740c8c13dae81a8aad936ebc0284f24476124 (patch)
tree9aa87ed75014e3b4cd3bbe13db38ce81d4307019
parent9afcd97e50f16bc489015ac6b4cd669e75434b2b (diff)
downloadsystem-plugin-bb5740c8c13dae81a8aad936ebc0284f24476124.tar.gz
system-plugin-bb5740c8c13dae81a8aad936ebc0284f24476124.tar.bz2
system-plugin-bb5740c8c13dae81a8aad936ebc0284f24476124.zip
The RW update related to filesystem is done in the first step of update. Change-Id: I0e765b5458dfddffee6bfc661bb61e1dd0d5e1d0 Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rwxr-xr-xupgrade/update-init.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh
index 9618bf0..43e33ad 100755
--- a/upgrade/update-init.sh
+++ b/upgrade/update-init.sh
@@ -27,3 +27,14 @@ cp -arf /system-update/data/rpm/* /var/lib/rpm
# Disable cynara-check
buxton2ctl security-disable
+
+####### filesystem update #######
+rm -rf /var/lock
+ln -snf /run/lock /var/lock
+
+# Directory for compatibility
+chown root:root /opt/usr/media
+chsmack -a '_' -T /opt/usr/media
+# The operation done by generic-base.post
+chown root:root /opt/var/log
+chsmack -a '*' -t /opt/var/log