Add new OS build flavour for Weston desktop

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iac22b27ed7e7e121fccdddaa47821aef32b55fc7
This commit is contained in:
Dongjin Kim
2022-03-05 14:46:01 +09:00
parent 89c87f0dfe
commit ba68e40e71
6 changed files with 49 additions and 1 deletions

View 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

View File

@@ -0,0 +1,3 @@
allow_root_login() {
echo true
}

View File

@@ -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

View File

@@ -0,0 +1,2 @@
weston
openssh-server

View File

@@ -455,7 +455,7 @@ do_query_latest_tarball() {
local flavour=${4}
case ${flavour} in
*-desktop*)
*-desktop* | weston)
flavour="server"
;;
esac

1
menu
View File

@@ -91,6 +91,7 @@ do_menu_flavour() {
"lxde-desktop" "LXDE" \
"mate-desktop" "MATE" \
"xfce-desktop" "XFCE" \
"weston" "Weston" \
2>&1 >/dev/tty)
ret=$?