Skip to content

Commit 68af99c

Browse files
committed
Add desktop logic to disable tegra desktop, #706
1 parent aec23ad commit 68af99c

File tree

1 file changed

+15
-0
lines changed
  • manifests/maverick-modules/maverick_desktop/manifests

1 file changed

+15
-0
lines changed

manifests/maverick-modules/maverick_desktop/manifests/init.pp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
onlyif => "/bin/grep 'GRUB_CMDLINE_LINUX_DEFAULT=\"\"' /etc/default/grub",
2626
}
2727

28+
# Tegra graphical/multi-user systemd target is broken
29+
if $tegra_present == "yes" {
30+
service { "lightdm":
31+
ensures => running,
32+
enable => true,
33+
}
34+
}
2835
} elsif $enable == false {
2936
exec { "stop-desktop-target":
3037
unless => "/bin/systemctl status graphical.target |grep inactive",
@@ -36,6 +43,14 @@
3643
command => "/bin/systemctl set-default multi-user.target",
3744
}
3845

46+
# Tegra graphical/multi-user systemd target is broken
47+
if $tegra_present == "yes" {
48+
service { "lightdm":
49+
ensure => stopped,
50+
enable => false,
51+
}
52+
}
53+
3954
# Disable grub splash, which ensures tty1 is displayed by default on console at boot, otherwise we get a blank screen
4055
exec { "grub-splash":
4156
command => "/bin/sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\"/' /etc/default/grub; /usr/sbin/update-grub; /bin/chvt 1",

0 commit comments

Comments
 (0)