Update tizen common (with wayland) lxc template 38/37938/2
authorDariusz Michaluk <d.michaluk@samsung.com>
Wed, 8 Apr 2015 11:36:17 +0000 (13:36 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Thu, 9 Apr 2015 13:05:13 +0000 (15:05 +0200)
[Bug/Feature]   Adjust template to new platform image
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: If2771b8f39ca1422885fb241a7d7f0958b965065
Signed-off-by: Dariusz Michaluk <d.michaluk@samsung.com>
server/configs/lxc-templates/tizen-common-wayland.sh

index 5c572b7..48a2ff9 100755 (executable)
@@ -152,6 +152,20 @@ WantedBy=graphical.target
 EOF
 chmod 644 ${path}/systemd/system/display-manager-run.service
 
+# TODO temporary solution to set proper access rights
+cat <<EOF >>${path}/systemd/system/ptmx-fix.service
+[Unit]
+Description=Temporary fix access rights
+
+[Service]
+ExecStart=/bin/sh -c '/bin/chmod 666 /dev/ptmx; /bin/chown root:tty /dev/ptmx; /bin/chsmack -a "*" /dev/ptmx'
+
+[Install]
+WantedBy=multi-user.target
+EOF
+chmod 644 ${path}/systemd/system/ptmx-fix.service
+/bin/ln -s ${path}/systemd/system/ptmx-fix.service ${path}/systemd/system/multi-user.target.wants/ptmx-fix.service
+
 sed -e 's/run\/display/tmp/g' /usr/lib/systemd/system/display-manager.path >> ${path}/systemd/system/display-manager.path
 chmod 644 ${path}/systemd/system/display-manager.path
 sed -e 's/run\/display/tmp/g' /usr/lib/systemd/system/display-manager.service >> ${path}/systemd/system/display-manager.service