From: Sunmin Lee Date: Wed, 24 Aug 2016 04:41:41 +0000 (+0900) Subject: Upgrade: Mount user partition in upgrade mode X-Git-Tag: accepted/tizen/common/20160829.140227~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F85170%2F7;p=platform%2Fadaptation%2Fsystem-plugin.git Upgrade: Mount user partition in upgrade mode The lazy mount makes user partition mounted separately. For RW update, user partition also should be mounted. This is done in the start of upgrade. Change-Id: I3db70f3bb698d22371747530c545145836b57e09 Signed-off-by: Sunmin Lee --- diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh index 54bcf64..a627987 100755 --- a/upgrade/update-init.sh +++ b/upgrade/update-init.sh @@ -5,6 +5,17 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin OWNER_HOME=/opt/usr/home/owner +USER_DISK=`ls /dev/disk/by-partlabel/ | grep -i user` +USER_MNT=/opt/usr + +# Mount user partition (specific to lazy mount) +mount | grep "$USER_MNT" > /dev/null + +if [ $? != "0" ] +then + /usr/bin/mount PARTLABEL=$USER_DISK $USER_MNT +fi + # Create home directory test ! -e /opt/usr/home && mkdir -p /opt/usr/home