Back up skel directory 79/133779/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen/3.0/common/20170616.065312 accepted/tizen/3.0/ivi/20170615.081137 accepted/tizen/3.0/mobile/20170615.081124 accepted/tizen/3.0/tv/20170615.081128 accepted/tizen/3.0/wearable/20170615.081132 submit/tizen_3.0/20170615.044726
authorSunmin Lee <sunm.lee@samsung.com>
Tue, 13 Jun 2017 09:57:13 +0000 (18:57 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Tue, 13 Jun 2017 09:57:13 +0000 (18:57 +0900)
For now, /etc/skel is a symbolic link to /opt/etc/skel.
Therefore, /opt/etc/skel directory should be backed up and
restored in RW update.

Change-Id: I07e1d8bd97042f8ff6f0a7dc37f2484f2470bc92
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
scripts/make_upgrade_image.sh
upgrade/update-init.sh

index b6f143349ff4d9090be4124e85ef8de6094c7da8..61d1d552114eaa31c55ed96b973b6d10a95a68fb 100644 (file)
@@ -29,6 +29,8 @@ backup () {
        mkdir ${tmp_path}/usr/share/upgrade/data/rpm
        cp -af ${tmp_path}/opt/var/lib/rpm/* ${tmp_path}/usr/share/upgrade/data/rpm
 
+       cp -af ${tmp_path}/opt/etc/skel ${tmp_path}/usr/share/upgrade/data
+
        sync
 
        umount -l ${tmp_path}/opt/usr
index 371abfe83c83e84171756262f998142609f4f963..084c1bc711f4df523f3152010b3e8cda1940999b 100755 (executable)
@@ -24,3 +24,6 @@ cp -af /usr/share/upgrade/data/home/owner /opt/usr/home
 # Copy 3.0 rpm db
 rm -rf /var/lib/rpm/*
 cp -af /usr/share/upgrade/data/rpm/* /var/lib/rpm
+
+# Copy skel directory
+cp -af /usr/share/upgrade/data/skel /opt/etc