Upgrade: Post operation of filesystem 81/87781/3
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 9 Sep 2016 10:25:49 +0000 (19:25 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Mon, 12 Sep 2016 01:38:41 +0000 (10:38 +0900)
The post operation of upgrade removes redundant directories
in Tizen 3.0.

Change-Id: I80e9e2b6b12a95dfa36844be7e0c084d714f3815
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
upgrade/update-post.sh [new file with mode: 0755]
upgrade/update.sh

diff --git a/upgrade/update-post.sh b/upgrade/update-post.sh
new file mode 100755 (executable)
index 0000000..696e2d6
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# RW update post script
+# (especially for filesystem operation)
+#
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+rm -rf /opt/usr/live
+rm -rf /opt/driver
+rm -rf /opt/storage
index 1aeb2e9..a4d3534 100755 (executable)
@@ -23,6 +23,8 @@ else
                ${RUN} ${PATCH_DIR}/${PATCH}
        done
 
+       ${RUN} /usr/share/upgrade/update-post.sh
+
        echo "SUCCESS: Upgrade successfully finished" > ${RESULT_FILE}
 fi