mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
Add new OS build flavour for Weston desktop
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Iac22b27ed7e7e121fccdddaa47821aef32b55fc7
This commit is contained in:
7
distro/bionic/weston/fixups/S70-weston
Executable file
7
distro/bionic/weston/fixups/S70-weston
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i "s/^User=.*/User=@@DEFAULT_USER@@/g" \
|
||||
/etc/systemd/system/weston.service
|
||||
|
||||
chmod 644 /etc/systemd/system/weston.service
|
||||
systemctl enable weston
|
||||
3
distro/bionic/weston/functions
Normal file
3
distro/bionic/weston/functions
Normal file
@@ -0,0 +1,3 @@
|
||||
allow_root_login() {
|
||||
echo true
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
[Unit]
|
||||
Description=Weston Wayland Compositor (on tty7)
|
||||
RequiresMountsFor=/run
|
||||
Conflicts=getty@tty7.service plymouth-quit.service
|
||||
After=systemd-user-sessions.service getty@tty7.service plymouth-quit-wait.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
PermissionsStartOnly=true
|
||||
|
||||
# Log us in via PAM so we get our XDG & co. environment and
|
||||
# are treated as logged in so we can use the tty:
|
||||
PAMName=login
|
||||
|
||||
# Grab tty7
|
||||
UtmpIdentifier=tty7
|
||||
TTYPath=/dev/tty7
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
|
||||
# stderr to journal so our logging doesn't get thrown into /dev/null
|
||||
StandardOutput=tty
|
||||
StandardInput=tty
|
||||
StandardError=journal
|
||||
EnvironmentFile=-/etc/default/weston
|
||||
|
||||
# Weston does not successfully change VT, nor does systemd place us on
|
||||
# the VT it just activated for us. Switch manually:
|
||||
ExecStartPre=/bin/chvt 7
|
||||
ExecStart=/usr/bin/weston-launch -- --log=/var/log/weston.log --xwayland $OPTARGS
|
||||
IgnoreSIGPIPE=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
2
distro/bionic/weston/packages
Normal file
2
distro/bionic/weston/packages
Normal file
@@ -0,0 +1,2 @@
|
||||
weston
|
||||
openssh-server
|
||||
@@ -455,7 +455,7 @@ do_query_latest_tarball() {
|
||||
local flavour=${4}
|
||||
|
||||
case ${flavour} in
|
||||
*-desktop*)
|
||||
*-desktop* | weston)
|
||||
flavour="server"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user