Create 'owner' user and enable user session 32/34932/1
authorSuchang Woo <suchang.woo@samsung.com>
Wed, 4 Feb 2015 13:04:47 +0000 (22:04 +0900)
committerSuchang Woo <suchang.woo@samsung.com>
Wed, 4 Feb 2015 13:08:00 +0000 (22:08 +0900)
The default user is replaced with 'owner' user. 'guest' user is created
in tv-users.post script.
A 'owner' user session is enabled.

Change-Id: I51241bf22e28461973f582d6c5b5c913d95872c3
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
scripts/tv-users.post [new file with mode: 0644]
tv.yaml

diff --git a/scripts/tv-users.post b/scripts/tv-users.post
new file mode 100644 (file)
index 0000000..eb2ae37
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+echo "#################### tv-users.post ##################"
+
+# create guest user
+/usr/sbin/useradd -m -G audio,video guest
+
+# enable linger state
+mkdir -p /var/lib/systemd/linger
+touch /var/lib/systemd/linger/owner
+
diff --git a/tv.yaml b/tv.yaml
index 1ba4d10..e92a56c 100644 (file)
--- a/tv.yaml
+++ b/tv.yaml
@@ -7,7 +7,7 @@ Default:
     Keyboard: us
     Timezone: America/Los_Angeles
     RootPass: tizen
-    DefaultUser: guest
+    DefaultUser: owner
     DefaultUserPass: tizen
     BootLoader: True
     BootloaderAppend: "rw vga=current splash rootwait rootfstype=ext4 plymouth.enable=0"
@@ -156,6 +156,7 @@ init-X11:
         - tv-adaptation
         - tv-x11
         - tv-mbr-3parts
+        - tv-users
     Repos: []
     NoChrootScripts:
         - buildname