summaryrefslogtreecommitdiff
path: root/upgrade/update-image.sh
blob: 27441bcfc7d10b4cff2a225609dd7f0d99078461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Modify normal image to upgrade image
#

# Back up rpm db for Tizen 3.0
mkdir /usr/share/upgrade/data/rpm
cp -af /var/lib/rpm/* /usr/share/upgrade/data/rpm

# Back up default user home directory
mkdir /usr/share/upgrade/data/home
cp -af /home/owner /usr/share/upgrade/data/home

# remove RW partitions' files
rm -rf /opt/*