<tt><font size=2>Peter Sztan <sztanpet@gmail.com> wrote on 03/12/2015
09:33:38 AM:<br>
<br>
> From: Peter Sztan <sztanpet@gmail.com></font></tt>
<br><tt><font size=2>> To: Aaron_Wright@selinc.com</font></tt>
<br><tt><font size=2>> Cc: systemd Mailing List <systemd-devel@lists.freedesktop.org></font></tt>
<br><tt><font size=2>> Date: 03/12/2015 09:33 AM</font></tt>
<br><tt><font size=2>> Subject: Re: [systemd-devel] minimal required
units</font></tt>
<br><tt><font size=2>> <br>
> Sorry for the noise, I have now read that you have already seen it.<br>
> </font></tt>
<br>
<br><tt><font size=2>Just for illustration purposes, here are few units
listed in systemd.special, that I don't feel like I need, but which I'm
left wondering if systemd needs them:</font></tt>
<br>
<br><tt><font size=2>cryptsetup.target</font></tt>
<br><tt><font size=2>display-manager.service</font></tt>
<br><tt><font size=2>getty.target</font></tt>
<br><tt><font size=2>graphical.target</font></tt>
<br><tt><font size=2>hibernate.target</font></tt>
<br><tt><font size=2>hybrid-sleep.target</font></tt>
<br><tt><font size=2>halt.target</font></tt>
<br><tt><font size=2>initrd-fs.target</font></tt>
<br><tt><font size=2>kbrequest.target</font></tt>
<br><tt><font size=2>multi-user.target</font></tt>
<br><tt><font size=2>network-online.target</font></tt>
<br><tt><font size=2>poweroff.target</font></tt>
<br><tt><font size=2>remote-fs.target</font></tt>
<br><tt><font size=2>initrd-root-fs.target</font></tt>
<br><tt><font size=2>runlevel*.target</font></tt>
<br><tt><font size=2>sigpwr.target</font></tt>
<br><tt><font size=2>sleep.target</font></tt>
<br><tt><font size=2>suspend.target</font></tt>
<br><tt><font size=2>swap.target</font></tt>
<br>
<br><tt><font size=2>(and so on)</font></tt>
<br>
<br><tt><font size=2>I can't tell from systemd.special if these are required
or not.</font></tt>
<br><tt><font size=2><br>
> On Thu, Mar 12, 2015 at 5:32 PM, Peter Sztan <sztanpet@gmail.com>
wrote:<br>
> > man 7 systemd.special<br>
> ><br>
> > On Thu, Mar 12, 2015 at 4:41 PM,  <Aaron_Wright@selinc.com>
wrote:<br>
> >> Andrei Borzenkov <arvidjaar@gmail.com> wrote on 03/11/2015
08:47:43 PM:<br>
> >><br>
> >>> From: Andrei Borzenkov <arvidjaar@gmail.com><br>
> >>> To: Aaron_Wright@selinc.com<br>
> >>> Cc: systemd-devel@lists.freedesktop.org<br>
> >>> Date: 03/11/2015 08:47 PM<br>
> >>> Subject: Re: [systemd-devel] minimal required units<br>
> >>><br>
> >>> В Wed, 11 Mar 2015 12:02:29 -0700<br>
> >>> Aaron_Wright@selinc.com пишет:<br>
> >>><br>
> >>> > I'm trying to make an embedded device, and I would
like to start with<br>
> >>> > the<br>
> >>> > minimal setup as possible. Are there some units
that are required by<br>
> >>> > systemd?<br>
> >>> > I ask because systemd is complaining about a missing
rescue.target unit,<br>
> >>><br>
> >>> When does it do it?<br>
> >><br>
> >> It was doing this because my default unit was not set correctly.
But that<br>
> >> isn't really the question. The question is, what units are
required by<br>
> >> systemd? How can I figure that out? It seems like rescue.target,<br>
> >> local-fs.target, and local-fs-pre.target are required, but
I've only<br>
> >> discovered that after trial and error. I know the systemd.special
man page<br>
> >> lists a ton of special units, but it seems that not all of
them are<br>
> >> required. Right? Well, which ones are? I feel like I need
to look through<br>
> >> the code to see when a hardcoded unit is referenced, like
<br>
> rescue.target was,<br>
> >> that I don't know about.<br>
> >><br>
> >> My device doesn't have many of the same requirements of a
full desktop or<br>
> >> server Linux, so I'm trying to strip out things from systemd,
unit wise,<br>
> >> that I don't want or need. I've customized sysinit.target
and basic.target<br>
> >> to just reference the units I want. And that seems to be
going smooth, but<br>
> >> it appears there are other units, that I didn't know about
that are<br>
> >> required, but that aren't documented as such (that I could
find). This<br>
> >> scares me a bit.<br>
> >><br>
> >>><br>
> >>> > but I don't list rescue.target as a dependency of
any other unit.<br>
> >>> > However, grep tells me that /usr/lib/systemd/systemd
contains the<br>
> >>> > "rescue.target" string, which worries
me. Is there a list of all the<br>
> >>> > units<br>
> >>> > that are required, even though no other unit lists
them?<br>
> >><br>
> >> _______________________________________________<br>
> >> systemd-devel mailing list<br>
> >> systemd-devel@lists.freedesktop.org<br>
> >> </font></tt><a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel"><tt><font size=2>http://lists.freedesktop.org/mailman/listinfo/systemd-devel</font></tt></a><tt><font size=2><br>
> >><br>
</font></tt>