<p dir="ltr">Hi, <a href="https://github.com/systemd/systemd/issues/14190">https://github.com/systemd/systemd/issues/14190</a> might also be off interest for you</p>
<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2025, 18:15 Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2025 at 4:46 PM Umut Tezduyar Lindskog <<a href="mailto:Umut.Tezduyar@axis.com" target="_blank" rel="noreferrer">Umut.Tezduyar@axis.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt">Hi, <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I build a minimum image with mkosi with just systemd, udev as the packages and set the default target to basic.target. It works fine but I cannot shut down the system with systemctl. It complains that dbus
is not available. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">AFAIK, systemd implements it’s own dbus server to serve systemctl until the dbus daemon / broker starts up. Is this a regression or has something changed about the logic? </span><br></p></div></div></div></blockquote><div><br></div><div>It uses a peer-to-peer dbus socket – i.e. not so much a 'dbus server' but a direct unix socket that happens to speak the dbus protocol. This is placed at <span style="font-family:monospace">/run/systemd/private </span>and is restricted to root only (it doesn't support polkit-based authorization). Systemctl's bus_connect_transport_systemd() won't even try connecting to it when running as a different user than root.<br></div><div> </div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>
</blockquote></div>