Upgrade: Create home directory through gum-utils '-u' 16/85416/2 accepted/tizen/common/20160829.140227 accepted/tizen/ivi/20160829.232803 accepted/tizen/mobile/20160829.232710 accepted/tizen/tv/20160829.232727 accepted/tizen/wearable/20160829.232744 submit/tizen/20160829.060602
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 25 Aug 2016 04:41:02 +0000 (13:41 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Mon, 29 Aug 2016 05:33:29 +0000 (22:33 -0700)
For Tizen 3.0, home directory for default user (owner)
is necessary. Rather than remove & recreate the user,
the '-u' option will just make a home directory for
specific user if it did not exist.

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

index a6279874a1b89ce37ea0cdadc8766cb059c7ffc2..9618bf0986cd84a81cc5a0cfce730d09fad5c462 100755 (executable)
@@ -19,11 +19,7 @@ fi
 # Create home directory
 test ! -e /opt/usr/home && mkdir -p /opt/usr/home
 
-if [ ! -d ${OWNER_HOME} ]
-then
-       gum-utils --offline --delete-user --uid=5001
-       gum-utils --offline --add-user --username=owner --usertype=admin --usecret=tizen
-fi
+gum-utils --offline -u --uid 5001
 
 # Copy 3.0 rpm db
 rm -rf /var/lib/rpm/*