summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunmin Lee <sunm.lee@samsung.com>2016-08-23 21:54:10 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-08-23 21:54:10 -0700
commitbf223b8e07e676111288ac0d0909b2d31bf39abd (patch)
tree411274be8f5853aa2e292445611daf0990128943
parent7b5c92426b9201a39c09a887d122772d1d2fcffc (diff)
parentc94a87c3793a66f51e5998e198fadf3af644720b (diff)
downloadsystem-plugin-bf223b8e07e676111288ac0d0909b2d31bf39abd.tar.gz
system-plugin-bf223b8e07e676111288ac0d0909b2d31bf39abd.tar.bz2
system-plugin-bf223b8e07e676111288ac0d0909b2d31bf39abd.zip
Merge "Upgrade: Back rpm db up for Tizen 3.0" into tizen
-rwxr-xr-xupgrade/update-image.sh4
-rwxr-xr-xupgrade/update-init.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/upgrade/update-image.sh b/upgrade/update-image.sh
index 55ad4a2..fd20bcf 100755
--- a/upgrade/update-image.sh
+++ b/upgrade/update-image.sh
@@ -3,5 +3,9 @@
# Modify normal image to upgrade image
#
+# Back rpm db up for Tizen 3.0
+mkdir /system-update/data/rpm
+cp -arf /var/lib/rpm/* /system-update/data/rpm
+
# remove RW partitions' files
rm -rf /opt/*
diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh
index 5c414ad..f2de67d 100755
--- a/upgrade/update-init.sh
+++ b/upgrade/update-init.sh
@@ -13,3 +13,7 @@ then
gum-utils --offline --delete-user --uid=5001
gum-utils --offline --add-user --username=owner --usertype=admin --usecret=tizen
fi
+
+# Copy 3.0 rpm db
+rm -rf /var/lib/rpm/*
+cp -arf /system-update/data/rpm/* /var/lib/rpm