<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">$ROOT_CMD ln -s /dev/null /etc/systemd/system/lightdm.service?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">(mask it out in the system override directory)<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">(not quite same as disabling).<br><br>I think minimally, you need to:<br><br>$ROOT_CMD /bin/rm -f /etc/systemd/system/multi-user.target.wants/lightdm.service (or whatever it's called)<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br>(presuming that's your default systemd target)<br><br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">--stephen<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 3:14 PM, Bob Apodaca <span dir="ltr"><<a href="mailto:bob@phxlab.honeywell.com" target="_blank">bob@phxlab.honeywell.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am using Debian Jessie and things are going well, with a couple exceptions. I am installing lightdm, but on some systems I want to disable it. I was trying to do:<br>
<br>
systemctl disable lightdm<br>
<br>
However, systemd knows this is a chroot environment and the command fails. I've also tried the following:<br>
<br>
$ROOT_CMD rm -f /etc/systemd/system/display-manager.service<br>
$ROOT_CMD /usr/sbin/update-rc.d lightdm defaults<br>
$ROOT_CMD /usr/sbin/update-rc.d lightdm disable<br>
<br>
Any suggestions?<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Stephen Dowdy - Systems Administrator - NCAR/RAL<br>303.497.2869 - <a href="mailto:sdowdy@ucar.edu" target="_blank">sdowdy@ucar.edu</a> - <a href="http://www.ral.ucar.edu/~sdowdy/" target="_blank">http://www.ral.ucar.edu/~sdowdy/</a><br><br></div></div>
</div>