diff options
author | Sunmin Lee <sunm.lee@samsung.com> | 2016-08-23 21:54:10 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2016-08-23 21:54:10 -0700 |
commit | bf223b8e07e676111288ac0d0909b2d31bf39abd (patch) | |
tree | 411274be8f5853aa2e292445611daf0990128943 | |
parent | 7b5c92426b9201a39c09a887d122772d1d2fcffc (diff) | |
parent | c94a87c3793a66f51e5998e198fadf3af644720b (diff) | |
download | system-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-x | upgrade/update-image.sh | 4 | ||||
-rwxr-xr-x | upgrade/update-init.sh | 4 |
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 |