Skip to content

Commit

Permalink
Remove gdm3 totally from GPU nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Jul 19, 2024
1 parent b4a3c0d commit c2b4148
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions recipes/agent_build_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,11 @@
# TODO: assuming :0 here is fragile
ENV['DISPLAY'] = ':0'

# gdm3 systemctl delete the display-manager systemctl when disabled
# be sure of installing lightdm after this and not before
service "gdm3" do
action [:start, :disable]
only_if { node['packages'].keys.include? "gdm3" }
# gdm3 will conflict with lightdm and make it not to start
package 'gdm3' do
only_if { has_nvidia_support? }
action :purge
end

# lightdm seems to need unity-greeter and remove ubuntu-session to work out-of-the-box
# see: https://github.com/osrf/osrf_jenkins_agent/issues/25
package 'unity-greeter' do
Expand Down Expand Up @@ -183,7 +180,7 @@
command 'echo set shared/default-x-display-manager lightdm | debconf-communicate'
not_if 'grep lightdm /etc/X11/default-display-manager'
end
execute 'reconfigure-gdm3' do
execute 'reconfigure-lightdm' do
command 'dpkg-reconfigure lightdm'
environment ({'DEBIAN_FRONTEND' => 'noninteractive', 'DEBCONF_NONINTERACTIVE_SEEN' => 'true'})
not_if 'grep lightdm /etc/X11/default-display-manager'
Expand Down

0 comments on commit c2b4148

Please sign in to comment.