summaryrefslogtreecommitdiff
path: root/upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade')
-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