-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wayland errata #139
wayland errata #139
Changes from 16 commits
6198317
3549ee4
f3c0f2c
70c160b
439c8e9
3361391
dbc78b3
4745876
0d2800a
ec04f1e
69f7190
ce57cba
b945d10
d17ef9e
f40cc57
ca43828
c10b8e8
4d20d8c
14a0da9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
#!/bin/bash | ||
|
||
set -exv | ||
|
||
# init helpers | ||
helpers_dir=${MONOPACKER_HELPERS_DIR:-"/etc/monopacker/scripts"} | ||
for h in ${helpers_dir}/*.sh; do | ||
. $h; | ||
done | ||
|
||
# see https://github.com/mozilla-platform-ops/monopacker/issues/138 | ||
|
||
|
||
# | ||
# install tools | ||
# | ||
|
||
# used to modify specific blocks in .conf files | ||
apt install -y crudini | ||
|
||
|
||
# | ||
# dconf settings | ||
# | ||
|
||
cat > /etc/dconf/profile/user << EOF | ||
user-db:user | ||
system-db:local | ||
EOF | ||
|
||
mkdir /etc/dconf/db/local.d/ | ||
# dconf user settings | ||
cat > /etc/dconf/db/local.d/00-tc-gnome-settings << EOF | ||
# /org/gnome/desktop/session/idle-delay | ||
[org/gnome/desktop/session] | ||
idle-delay=uint32 0 | ||
|
||
# /org/gnome/desktop/lockdown/disable-lock-screen | ||
[org/gnome/desktop/lockdown] | ||
disable-lock-screen=true | ||
EOF | ||
|
||
# make dbus read the new configuration | ||
sudo dconf update | ||
|
||
# test | ||
ls -hal /etc/dconf/db/ | ||
|
||
|
||
# | ||
# gdm3 settings | ||
# | ||
|
||
# in [daemon] block of /etc/gdm3/custom.conf we need: | ||
# | ||
# XorgEnable=false | ||
|
||
crudini --set /etc/gdm3/custom.conf daemon XorgEnable 'false' | ||
|
||
# verify/test | ||
cat /etc/gdm3/custom.conf | ||
echo "----" | ||
grep 'XorgEnable' /etc/gdm3/custom.conf | ||
grep 'XorgEnable' /etc/gdm3/custom.conf | grep false | ||
|
||
|
||
# | ||
# gdm wait service file | ||
# | ||
|
||
# This hack is required because without we end up in a situation where the | ||
# wayland seat is in a weird state and consequences are: | ||
# - either x11 session | ||
# - either xwayland fallback | ||
# - either wayland but with missing keyboard capability that breaks | ||
# things including copy/paste | ||
|
||
mkdir -p /etc/systemd/system/gdm.service.d/ | ||
cat > /etc/systemd/system/gdm.service.d/gdm-wait.conf << EOF | ||
[Unit] | ||
Description=Extra 30s wait | ||
|
||
[Service] | ||
ExecStartPre=/bin/sleep 30 | ||
EOF | ||
|
||
|
||
# | ||
# extra packages | ||
# | ||
|
||
# ttf-mscorefonts-installer is part of ubuntu-restricted-extras, accept license | ||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections | ||
|
||
# install stuff | ||
apt install -y ubuntu-restricted-extras wl-clipboard | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Debugging is done we dont need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wl-clipboard removed. Check for XDG_RUNTIME_DIR added. |
||
|
||
|
||
# | ||
# write mutter's monitors.xml | ||
# | ||
|
||
cat > /etc/xdg/monitors.xml << EOF | ||
<monitors version="2"> | ||
<configuration> | ||
<logicalmonitor> | ||
<x>0</x> | ||
<y>0</y> | ||
<scale>1</scale> | ||
<primary>yes</primary> | ||
<monitor> | ||
<monitorspec> | ||
<connector>Virtual-1</connector> | ||
<vendor>unknown</vendor> | ||
<product>unknown</product> | ||
<serial>unknown</serial> | ||
</monitorspec> | ||
<mode> | ||
<width>1920</width> | ||
<height>1080</height> | ||
<rate>60.000</rate> | ||
</mode> | ||
</monitor> | ||
</logicalmonitor> | ||
</configuration> | ||
</monitors> | ||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This defines the current Taskcluster version, the default version for worker-runner and workers. | ||
env_vars: | ||
TASKCLUSTER_VERSION: 64.2.6 | ||
TASKCLUSTER_VERSION: 64.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to explain that this is a hack required because without, on those workers, we end up in a situation where the wayland seat is in a weird state and consequences are:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I was unclear about why it was needed. Comment added.