From: Sunmin Lee Date: Tue, 13 Jun 2017 09:57:13 +0000 (+0900) Subject: Back up skel directory X-Git-Tag: submit/tizen_3.0/20170615.044726^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e6c8c261930a42cbef30f86b6eb227527341e8d;p=platform%2Fadaptation%2Fsystem-plugin.git Back up skel directory 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 --- diff --git a/scripts/make_upgrade_image.sh b/scripts/make_upgrade_image.sh index b6f1433..61d1d55 100644 --- a/scripts/make_upgrade_image.sh +++ b/scripts/make_upgrade_image.sh @@ -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 diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh index 371abfe..084c1bc 100755 --- a/upgrade/update-init.sh +++ b/upgrade/update-init.sh @@ -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